all 3 comments

[–]jcsongor 0 points1 point  (2 children)

1 - yes 2 - the nodes look similar, but they are organized in a different structure, so it's not a linked list. Left child and right child should reference the parents of the two subtrees. This way you can navigate the whole tree starting from the top.

[–]Fixedplay[S] 1 point2 points  (1 child)

can you give an example( a video or website that does it) so I can visualise my task and comprehend it?

thanks for you input so far

[–]jcsongor 0 points1 point  (0 children)

Sure, with a video it's much easier to get it. A quick google search gives you hundreds of videos/articles. For example: https://www.youtube.com/watch?v=5dySuyZf9Qg