Software Engineer 2 Interview Questions

665,002 software engineer 2 interview questions shared by candidates

N pots, each with some number of gold coins, are arranged in a line. You are playing a game against another player. You take turns picking a pot of gold. You may pick a pot from either end of the line, remove the pot, and keep the gold pieces. The player with the most gold at the end wins. Develop a strategy for playing this game.
avatar

Software Engineer

Interviewed at Google

4.4
Sep 21, 2012

N pots, each with some number of gold coins, are arranged in a line. You are playing a game against another player. You take turns picking a pot of gold. You may pick a pot from either end of the line, remove the pot, and keep the gold pieces. The player with the most gold at the end wins. Develop a strategy for playing this game.

Viewing 561 - 570 interview questions

Glassdoor has 665,002 interview questions and reports from Software engineer 2 interviews. Prepare for your interview. Get hired. Love your job.