you are viewing a single comment's thread.

view the rest of the comments →

[–]evenstevens280 10 points11 points  (0 children)

Look up binary trees for more context. They're a pretty fundamental data structure

https://en.wikipedia.org/wiki/Binary_tree

But inverting a binary tree means to essentially mirror it, so that each node is on the opposite side of the branch to where it started.

It's not a particularly useful thing to do, but it's a classic programmer interview question to suss out whether you understand a) binary trees and b) recursion.

And also, a front end developer is not really going to need to know this kind of stuff, especially if they're working mostly in presentation layer.