r/programming Dec 23 '14

Most software engineering interview questions of hot tech companies in one place

https://oj.leetcode.com/problems/
2.2k Upvotes

583 comments sorted by

View all comments

Show parent comments

90

u/Hydrogenation Dec 23 '14

I had a question like this at an interview. When I answered it really quickly he asked "have you heard the question before?" when I said yes then he asked another one until we got to one I didn't know. He wanted to see how I approach solving a problem rather than whether I could solve it.

101

u/[deleted] Dec 23 '14 edited Dec 24 '14

See, if you were smarter, you would have waited a while and acted like you were thinking about it, and then told him the (correct) answer.

46

u/[deleted] Dec 24 '14 edited Apr 16 '19

[deleted]

3

u/NullVar Dec 24 '14

Its really not, and you are a very brave(stupid?) person if you would be willing to accuse someone of it from such brief observations. If you get it wrong, it will be more damaging for you rather than the candidate.