Hacker News new | past | comments | ask | show | jobs | submit login

The O(N) one happened last week on an interview, I just smiled and let the interviewer solve it and I still got the job. Not sure what the point of the question was.



So you had a bad interviewer... cycle detection is a really deep question, read up on it:

http://en.wikipedia.org/wiki/Cycle_detection




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: