/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: 0.216s
|
source
Show context
enjoylife
◴[
13 Oct 16 15:48 UTC
]
No.
12701550
[source]
▶
>>12701272 (OP)
#
What the heck is a "Quicksort big-O score"? I've never heard anyone use the noun score when talking about complexity analysis.
replies(2):
>>12701671
#
>>12701675
#
protomyth
◴[
13 Oct 16 16:04 UTC
]
No.
12701675
[source]
▶
>>12701550
#
I assume they want the average O(n log n), but who the heck knows given the script from above.
I get the feeling this:
http://bigocheatsheet.com
would come in handy
replies(1):
>>12701916
#
steven777400
◴[
13 Oct 16 16:28 UTC
]
No.
12701916
[source]
▶
>>12701675
#
Big-O technically means "worst case", which for Quicksort is O(n^2), although usually (in normal cases) it runs better than that. Other sort algorithms can guarantee not worse than O(n log n).
replies(3):
>>12702289
#
>>12702370
#
>>12703002
#
1.
protomyth
◴[
13 Oct 16 17:08 UTC
]
No.
12702289
[source]
▶
>>12701916
#
Must have been a while, I thought you went with average, but I guess its been 20 years. I mostly lived in optimizing cache since college.
ID:
GO
↑