0:00 題目說明
1:26 程式說明
4:03 複雜度分析
Problem:https://leetcode.com/problems/invert-binary-tree/
n : the number of nodes in the tree
Time complexity : O(n)
Space complexity : O(n)
Code:https://github.com/kobukuro/leetcode/blob/master/problems/easy/invert_binary_tree_226/solution.py
Download
0 formats
No download links available.
[Leetcode] 226. Invert Binary Tree 中文解說 - Python | NatokHD