Question d’entretien chez Amazon

Given a binary tree with only upwards (parent) node references, re-construct the tree adding in child references. You are given a list of leaf nodes (sorted in left to right order). Tricks include making sure to account for extremely unbalanced trees.

Réponses aux questions d'entretien

Utilisateur anonyme

27 avr. 2011

Recommend liberal use of queues

Utilisateur anonyme

2 nov. 2011

Can use a layer-by-layer recursive method.

Utilisateur anonyme

1 mai 2011

Can you elaborate pls..