Pergunta de entrevista da empresa Amazon

Sorting a list of some random type

Respostas da entrevista

Sigiloso

21 de mar. de 2009

Don't use brute force. At the very least offer some comments that shows you are thinking of more efficient solutions.

Sigiloso

15 de ago. de 2009

Insert the items into a TreeSet (assumes the elements are comparable). Iterate through the loaded set.