Recursion and Trees
76 / 170Recursion and TreesLesson 9 of 13About 83 min
Three problems that all collapse once you take the ordering property seriously.
A candidate validates a search tree by checking, at every node, that its left child is smaller and its right child is larger. What does this miss?
Read the constraints first and let them tell you what complexity is expected. Derive the approach, implement it, run the tests, and submit when it passes.
Read the constraints first and let them tell you what complexity is expected. Derive the approach, implement it, run the tests, and submit when it passes.
Read the constraints first and let them tell you what complexity is expected. Derive the approach, implement it, run the tests, and submit when it passes.