4 ms·
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.
by cfcosta 4y 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.
- magicalhippo 4y agoIt'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 https://en.wikipedia.org/wiki/B-tree#/media/File:B-tree.svg