LeetCode[107] Binary Tree Level Order Traversal II
107. Binary Tree Level Order Traversal II
難度:Medium
Python:
1 | # Definition for a binary tree node. |
C++:
1 | void dfs(TreeNode* root, int depth, vector<vector<int>>& result) { |
https://luyee6813.github.io/2022/06/07/%E7%A8%8B%E5%BC%8F%E6%BC%94%E7%AE%97/2022-06-07-LeetCode-107/
本部落格所有文章除特別聲明外,均採用 CC BY-NC-SA 4.0 許可協議。轉載請註明來自 LuYee6813's Blog!