InterviewDB
Experience
Line Game: Optimal Strategy for a Positional Token-Moving Game on a Number Line
phone
Interview Experience
Problem Two players alternate turns. There is a token on integer position pos on a number line. Each turn the current player moves the token left or right by any value in a given set moves (e.g., {1, 3}). A player who moves the token to position 0 wins. A player who cannot move (or is forced to move off the line) loses. Given pos and moves, determine if the first player wins with optimal play. Follow-ups This is a combinatorial game theory problem. Describe the DP recurrence for is_winning(pos).…
Full Details
🔒
Unlock all Hudson River Trading questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a hudson river trading interview during the phone round.
It covers the following topics: Coding, Phone, Matrix, Dynamic Programming .