Re:Invert a binary tree on LeetCode
by TheLoneWolfling on Saturday June 13, 2015 @11:14AM
(#9711242)
Better solution:
No needless enqueuing / dequeuing of things unless you need to. As a bonus, if the nodes maintain a count of how many children the have overall you can always recurse on the smaller child first and use less memory.
[ Parent
| on HN ]
There are no comments on this comment yet.