Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wow, I read through the discussion. No way in hell anyone would be able to answer that in an interview, unless they'd seen it before.


It's definitely answerable in an interview situation. Some people should be able to answer it, no problemo, in a minute or two.


I don't think you understand the problem. Even if you manage to find 4, 4, 3, 1 and 6, 2, 2, 2, you still have to verify that if the sum is 12, then there is only 1 possible product. You'll note that nobody in the linked thread succeeds at this (one guy proves that 12 works by exhaustive search, not really a possibility in an interview...)


Well, I saw it before, and it took a several minutes then, maybe 5 or 15, I don't really remember. Then you have to consider that companies like D.E. Shaw end up hiring people who would end up giggling at how long somebody slow like me would take to solve the problem.




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

Search: