/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Google's “Director of Engineering” Hiring Test
(www.gwan.com)
1764 points
fatihky
| 1 comments |
13 Oct 16 15:15 UTC
|
HN request time: 0s
|
source
Show context
sonoffett
◴[
13 Oct 16 15:58 UTC
]
No.
12701639
[source]
▶
>>12701272 (OP)
#
quicksort is O(n^2) which is definitely not the "best big-O" for sorting.
replies(4):
>>12701670
#
>>12701718
#
>>12701729
#
>>12701867
#
1.
Jiig
◴[
13 Oct 16 16:08 UTC
]
No.
12701718
[source]
▶
>>12701639
#
Its worst case is O(n^2) sure, so heap sort would be better if you know that your data would hit the worst case scenario of quick sort every time.
ID:
GO
↑