Question d’entretien chez Amazon

different between array and heap

Réponses aux questions d'entretien

Utilisateur anonyme

29 déc. 2011

Where are the answers?

Utilisateur anonyme

3 janv. 2012

Array: random number. Heap could be presented using array with a special way of storing elements. If a node is at nth index, its children would be stored at (2n + 1)th and (2n+2)th index.

Utilisateur anonyme

3 janv. 2012

I think what the interviewer was looking for is your understanding about heap ds.