Search
⌘K
Get Premium
Leetcode 294. Flip Game II
Given a string of '+' and '-', two players alternate turning any consecutive "++" into "--"; determine whether the starting player can force a win. This is a recursive backtracking/minimax search over game states where memoization is needed to avoid exponential recomputation.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.