Software Developer Intern Interview Questions

2,874 software developer intern interview questions shared by candidates

Play a game that always starts from you. Each time you can only pick up 1 or 3 or 4 coins from the table. Who leaves the enemy with no coins to pick up wins the game. Assume that your enemy is super intelligent that if there is a way he/ she can win, he/ she wins. Question: Write a function to return if you will win or lose the game say given n coins on the table.
avatar

Software Developer Intern

Interviewed at Amazon

3.5
Feb 20, 2013

Play a game that always starts from you. Each time you can only pick up 1 or 3 or 4 coins from the table. Who leaves the enemy with no coins to pick up wins the game. Assume that your enemy is super intelligent that if there is a way he/ she can win, he/ she wins. Question: Write a function to return if you will win or lose the game say given n coins on the table.

Viewing 331 - 340 interview questions

Glassdoor has 2,874 interview questions and reports from Software developer intern interviews. Prepare for your interview. Get hired. Love your job.