Pergunta de entrevista da empresa Amazon

Heap Sorting. What data structure do you use to implement it? Time to access and sort. Code it.

Respostas da entrevista

Sigiloso

28 de ago. de 2012

Using an array, you know the child of a node by using the 2i+1 formula.

Sigiloso

22 de out. de 2012

It depends on the size. It is better to implement it tree instead of array.