Good old standard problem: Playing number game with your friend to select any of the number between 1 to 3. Whoever reaches 20 first, wins. You have to tell the strategy to win the game. Basically, you start with your position at 20 and recursively think the problem to ensure that you end up at 16 (problem specific) before so that your friend ends up at any number between 17 to 19 and so on solve for 16.
AnswerBot
1y
The strategy is to always subtract the number chosen by the friend from 4 to ensure reaching 16 first.
Start with 20 and subtract the number chosen by the friend from 4.
Continue this strategy until rea...read more
Help your peers!
Add answer anonymously...
Top Goldman Sachs Analyst interview questions & answers
Popular interview questions of Analyst
Top HR questions asked in Goldman Sachs Analyst
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app