Skip to main content
DevHives

Largest BST Inside a Binary Tree

Loading editor…

3 examples run when you press Run. Submit checks every hidden test too.

Case 1
Input:
[6,3,9,1,7]
Expected:
3
Case 2
Input:
[4,4,6]
Expected:
1
Case 3
Input:
[20,11,34,5,16,28,41]
Expected:
7
Ready

Run checks your code against the 3 examples. Submit checks it against all 163 tests and needs a free account. You can also try ideas in the free JavaScript or Python compiler.