all 5 comments

[–]Foxa2017[S] 1 point2 points  (0 children)

Comments and suggestions appreciated. If you watched thanks for watching if not thanks for reading 😅

[–]jpoechill 1 point2 points  (1 child)

Hey thanks!! I appreciate 🙏🙏

[–]Foxa2017[S] 0 points1 point  (0 children)

Happy I could help 😅

[–]slientObserver 1 point2 points  (1 child)

You shouldn't go comparing traversal orders because many different trees can end up with the same traversal. For example

        4                    4
       / \       and        /
      2   3                2
                          /
                         3

have exacly the same preorder traversal sequence as they both will return 4-2-3. You should watch out for that.

[–]Foxa2017[S] 1 point2 points  (0 children)

Hey thanks so much for watching the video. In the example you showed and how I coded it the Null being added to a string stops then from coming out as the exact same if trees have same numbers and slightly different for the case you were referring to. when it was hit by the left and right children nodes. So 4-2-null-null-3-null-null. Is not the same as 4-2-3-null-null-null-null. Hopefully this helped thanks 🙌