Flat Table to Tree Parser
Flat Table to Tree Parser: a task in Terminal-Lego-15k (Harbor dataset). You need to implement an efficient algorithm to parse a flat database table representing a hierarchical tree structure and output it as a correctly ordered and indented text representation.
The task
You need to implement an efficient algorithm to parse a flat database table representing a hierarchical tree structure and output it as a correctly ordered and indented text representation.
Part of PrimeIntellect/Terminal-Lego-15k.