Questa è la tua azienda?
Verify a BST
Anonimo
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.
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.