Hacker News new | ask | show | jobs
by cfcosta 1506 days ago
Think the main confusion going on here is that people do not think of tree as lists, even if they could be 100% represented as such.
1 comments

It's early so could you help me out by showing how to represent say this[1] tree as a list?

Or did you just mean you can store the nodes in an array and index them by level? In that case I wouldn't call it a list.

[1]: https://en.wikipedia.org/wiki/B-tree#/media/File:B-tree.svg