← Goldman Sachs questions

Check BST Without Extra Space

Filed under Goldman Sachs

Given a binary tree, check if it is a valid Binary Search Tree (BST) without using extra space (O(1) auxiliary space, which typically implies Morris Traversal if recursion stack is considered extra…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.