|
|
|
|
|
by jmvoodoo
898 days ago
|
|
I started a company that dealt with a lot of tree like data. It is possible to transform your tree structure into an indented list in O(n) time. This used to be one of our interview questions at the time. There are a number of ways to store your data in various SQL databases that allow you to quickly get and render segments of the tree as well without recursive queries. Once you understand those concepts, then storing your data correctly as trees has a ton of benefits over indenting like this. |
|