- Notifications
You must be signed in to change notification settings - Fork2.4k
Closed
Description
Bug Report forhttps://neetcode.io/problems/invert-a-binary-tree
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
invertTree(root) {if (root === null) return null;[root.left, root.right] = [root.right, root.left];invertTree(root.left);invertTree(root.right);return root;}
this code doesn't work
Metadata
Metadata
Assignees
Labels
No labels