Comment by tomp
8 years ago
Haha, I've been a programmer for most of my life and I don't know what "inverting" a binary tree even means!
8 years ago
Haha, I've been a programmer for most of my life and I don't know what "inverting" a binary tree even means!
Ah, I would personally call that "flipping", I kind-of imagined that "inverting" would mean maybe taking a node and putting in the root of the tree or something similar...
Why would you want to reverse/inverse a binary tree?
It's an easy way to check if you can think recursively/are familiar with a btree.
That’s reversing a binary tree.
Inverting == Reversing [1]
[1] https://leetcode.com/problems/invert-binary-tree/description...
2 replies →
I'd be very careful now, you might not be a REAL programmer.