Day14-BinaryTree02
226. Invert Binary Tree
Node:
Time Complexity && Space Complexity
- Time Complexity: O(n)
- Space Complexity: O(n)
1 | var invertTree = function (root) { |
101. Symmetric Tree
Node:
Time Complexity && Space Complexity
- Time Complexity: O(n)
- Space Complexity: O(n)
1 | var isSymmetric = function (root) { |
1 | var isSymmetric = function (root) { |
- Title: Day14-BinaryTree02
- Author: Guoyi
- Created at : 2024-09-18 22:20:47
- Updated at : 2024-12-07 03:58:41
- Link: https://guoyiwang.github.io/Algorithm/Day14-BinaryTree02/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments