logoalt Hacker News

eudamoniacyesterday at 4:16 PM2 repliesview on HN

I feel the same way about inverting a binary tree, but a lot of people act like it's an arduous request. I am guessing it's because they've never read the description of what inverting a binary tree is, but maybe people are just that bad at recursion.


Replies

kraphtyesterday at 9:34 PM

You can go your entire career without recursing, or using a tree data structure in its raw form (i.e. you only use it as part of a library)

show 1 reply
ptrl600today at 8:11 AM

Yeah, you read it and expect the inversion to be inside-out or upside-down, defined in some hopelessly arcane way.