Engineer Intern Interview Questions

18,211 engineer 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 1991 - 2000 interview questions

Glassdoor has 18,211 interview questions and reports from Engineer intern interviews. Prepare for your interview. Get hired. Love your job.