226. Invert Binary Tree
Last updated
Was this helpful?
Last updated
Was this helpful?
Invert a binary tree.
Example:
Input:
Output:
Trivia: This problem was inspired by by :
Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so f*** off.