Empresa engajada
How do you insert into a binary tree?
Sigiloso
You find the spot to insert by traversing to where you think it is located. Then, you add it there if you don't find it. The complexity is O(log n)
was it a general binary tree or 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.