Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yodsanklai
on June 27, 2014
|
parent
|
context
|
favorite
| on:
The Worst Programming Interview Question
1) yes. 2) is ok (with a hash table instead of an array to have linear execution time), but doesn't run in constant space unlike 1), or you could mark the nodes when you visit them.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: