Domanda di colloquio di Amazon

Sorting a list of some random type

Risposte di colloquio

Anonimo

21 mar 2009

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

Anonimo

15 ago 2009

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