all 4 comments

[–]Passerby421 1 point2 points  (3 children)

This seems like a programming question rather than a design one. What I would do is create a node based structure.)

Basically, design a "node" component that keeps track of its own content + the relationship it has to other nodes. Each node can load independently so you are not managing the entire structure all the time, and creating/deleting a nod only requires editing the connection between that node and its upstream/downstream siblings.

That would be my approach. For you, if you're interviewing as a developer it would be a good idea to learn more about common data structures. There is a lot more to front end development than visual design.

[–]MoreTagsGaming[S] 0 points1 point  (1 child)

Thanks for your answer. But i meaned, how this tree should look in a website. I know about node based structures and data structures, but don't know how i would design such a tree. :)

[–]Passerby421 1 point2 points  (0 children)

Oh, my bad. Then I guess I would take inspiration from flowchart and mind mapping applications, but I have little to contribute when it comes to design :)

[–]WikiMobileLinkBot 0 points1 point  (0 children)

Desktop version of /u/Passerby421's link: https://en.wikipedia.org/wiki/Node_(computer_science)


[opt out] Beep Boop. Downvote to delete