Definition for a binary tree node.
Solved at: 220726
Question
Given the root of a binary tree, invert the tree, and return its root.
Solution
That was simple...
Results
Runtime
- 30 ms, faster than 95.71% of Python3 online submissions for Invert Binary Tree.
Memory Usage
- 13.9 MB, less than 11.66% of Python3 online submissions for Invert Binary Tree.
Other Answers Online
Backlinks (2)
Comments (0)