Frage im Vorstellungsgespräch bei Google

Sort a list

Antwort im Vorstellungsgespräch

Anonym

19. März 2019

If the list is an ArrayList you could use quick sort, merge sort, or heap sort but if it’s a linked list your limited to merge sort because of having only sequential access.