Largest subtree satisfying BST property
Filed under Samsung
The question
Given a binary tree, find the node from where the subtree satisfies the BST property and return its size.
No write-up yet. Related questions below have one.
Related Samsung questions
Collected from public candidate posts and coding forums. Updated Nov 2026.