Pregunta de entrevista de Amazon

Sorting a list of some random type

Respuestas de entrevistas

Anónimo

21 mar 2009

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

Anónimo

15 ago 2009

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