¿Esta es tu empresa?
Verify a BST
Anónimo
remember and update max and min when you go down the tree
Go breadth first and make sure left node < right node. That verifies the BST property at each level.
Do an inorder traversal and see if the values are sorted, if they are it is a BST else not.
Sigue a tus empresas favoritas para estar al tanto de las últimas oportunidades y disponer de información desde adentro.
Recibe recomendaciones y actualizaciones personalizadas al iniciar tu búsqueda.