Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yes_really
on April 2, 2022
|
parent
|
context
|
favorite
| on:
Ask HN: When did 7 interviews become “normal”?
But why didn't you use the O(n) solution instead of the O(n log n) solution?
nouveaux
on April 2, 2022
|
next
[–]
To be honest, I had forgotten the O(n) solution and vaguely remembered the nlogn solution. After that experience, I have both solutions lodged in my brain.
wombat-man
on April 2, 2022
|
prev
[–]
I suppose if you had to optimize for least space used sorting in place and doing it they way they suggested would be best.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: