Hi,
One of my friends pointed me towards this site: *www.interviewstreet.com/challenges
It is like a programming leaderboard, wherein you solve problems and get ranked. So, I have started this thread to discuss challenges, their algorithms, your rank/score, what you tackled lately etc.
I would ask you to avoid putting up your code so that everyone can rack their brains
EDIT: I've tackled this problem today:
However, the code I wrote in Java seems to pass only 4 out of 10 test cases. Since they have not shown what extra testcases they are using to test, I cannot know what went wrong. So, referring to the above problem, what else, according to you guys, should I test for?
PS: The code passes the above mentioned test cases successfully.
One of my friends pointed me towards this site: *www.interviewstreet.com/challenges
It is like a programming leaderboard, wherein you solve problems and get ranked. So, I have started this thread to discuss challenges, their algorithms, your rank/score, what you tackled lately etc.
I would ask you to avoid putting up your code so that everyone can rack their brains
EDIT: I've tackled this problem today:
However, the code I wrote in Java seems to pass only 4 out of 10 test cases. Since they have not shown what extra testcases they are using to test, I cannot know what went wrong. So, referring to the above problem, what else, according to you guys, should I test for?
PS: The code passes the above mentioned test cases successfully.
