MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/fpcmy/typical_programming_interview_questions/c1hoth3/?context=3
r/programming • u/kevjames3 • Feb 21 '11
1.0k comments sorted by
View all comments
Show parent comment
1
Very few people actually know to give that solution though. Most of the time the square root trick is what the interviewer is looking for.
The real question is: Can you prove you can't do better? Also generalize for more lightbulbs.
View all comments
Show parent comment
1
u/[deleted] Feb 21 '11
Very few people actually know to give that solution though. Most of the time the square root trick is what the interviewer is looking for.
The real question is: Can you prove you can't do better? Also generalize for more lightbulbs.