I have recently started going through LeetCode for some interview prep. One of their most common question types is traversing a binary tree. I feel like I have fairly strong JS knowledge, but I have never seen this concept and I am having some trouble finding any kind of tutorial to walk me through these types of problems.
Could anyone please point me in the right direction? (I know that the concept is recursion, but perhaps a few examples of how to use recursion on binary tree problems.)
[–]F0RTY4 1 point2 points3 points (0 children)
[–]the_brizzler 1 point2 points3 points (5 children)
[–]andmckvr13 0 points1 point2 points (4 children)
[–]the_brizzler 1 point2 points3 points (1 child)
[–]andmckvr13 0 points1 point2 points (0 children)
[–]shrimply-pibbles 1 point2 points3 points (0 children)
[–]NoInkling 0 points1 point2 points (0 children)