Two Sigma Interview Question

The code test, they give you 4 test case, which is regular format. But there is a button for additional 20 test case. They are hidden the content of test case. I always failed two of them. and didn't know why. So I cannot improve my code.

Interview Answers

Anonymous

Nov 27, 2013

think your code with absolutely no bug at all.

Anonymous

Apr 9, 2014

hmm I've passed all test cases... spent some tome on debugging, and eventually passed all test cases!

2

Anonymous

Dec 20, 2013

I just took their code test and I have found 2 out of the 4 test cases for Problem 2 were incorrect (if you go through their test cases manually you will find there are 2 test cases which are actually wrong). Unless you make same mistake as their test cases do, you will never pass all the test cases. I have a copy of the 4 test cases they give to candidates; I am not supposed to post them out I am afraid, otherwise everybody could take a look and confirm.