LeetCode Question · Aug 2020 · Los Angeles

Amazon | Phone | Two Sum - Input is a BST - HELP PLEASE

387 views 2 replies

Question Details

Problem is this: Initial solutions using map or a set were easy to come up with but interviewer wanted O(1) space complexity where the space for the recursion stack is not...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Binary Tree Recursion Stack Two Pointers