Empresa engajada
Can you find if a tree is a BST?
Sigiloso
Recursively go down each branch see if the left value is lower and the right value is higher. If at any point you find that the condition is false, then the tree is not a BST, otherwise, it is a BST.
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.