Re:My startup failed, then I found out I was unemployable
by Joker_vD on Tuesday April 13, 2021 @02:23PM
(#26796762)
Why would you even want to reverse a binary tree in the first place? Simply traverse it backwards, it's just as fast.
[ Parent
| on HN ]
Re:My startup failed, then I found out I was unemployable
by CheezeIt on Tuesday April 13, 2021 @03:41PM
(#26797999)
Maybe you’re passing it to some other function that doesn’t do that, or you don’t want to add some ordering flag to the datatype because that complicates things.
But the purpose of the question of course is to be an easy question showing basic competency in recursion and pointer usage.