Search a key in a binary search tree
Filed under LinkedIn
The question
Given a BST and a key, return 1 if the key is found and -1 otherwise.
No write-up yet. Related questions below have one.
Related LinkedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.