Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
AtlasBarfed
· 4y ago · 0 comments
The tree mirror problem is funny. You don't even need to recurse. Just define a wrapper for the node object that gets left when right is accessed and right when left is accessed. Voila!
Right and left are arbitrary anyway.
Comments
[–]
throwmeawaycs
4y ago
Actually in our problem we wanted you to do it without a wrapper so while this works, 0/100
[–]
AtlasBarfed
OP
4y ago
Can I rate your question? Why am I asking permission. 0/100