careercup / CtCI-6th-Edition

Cracking the Coding Interview 6th Ed. Solutions
11.29k stars 4.4k forks source link

REQUEST: What is the time and space complexity of the algorithm to determine all array sequences that upon left to right traversal could generate the same BST #236

Open RuchiInTheCloud opened 2 years ago

RuchiInTheCloud commented 2 years ago

REQUEST: What is the time and space complexity of the algorithm to determine all array sequences that upon left to right traversal could generate the same BST? I am referring to the Solution to Question 9 in CTCI 6th Edition Book. I like to understand the complexity of this solution.