MEDIUMasked at 1 company

Can I Win

A medium-tier problem at 30% community acceptance, tagged with Math, Dynamic Programming, Bit Manipulation. Reported in interviews at LinkedIn and 0 others.

Founder's read

You're staring at a game-theory problem where two players alternate picking numbers from a range, each trying to reach a target sum. It sounds simple until you realize the optimal strategy isn't greedy. LinkedIn asks this one, and most candidates fail because they don't see the memoization pattern underneath. The trick is that you need to track game states, not just sums. This is a classic spot where the obvious approach tanks and you need to cache recursive results indexed by the remaining range. If this hits your live OA and you freeze on the state representation, StealthCoder surfaces a working solution in seconds, invisible to the proctor.

Companies asking
1
Difficulty
MEDIUM
Acceptance
30%

Companies that ask "Can I Win"

If this hits your live OA

Can I Win is the kind of problem that decides whether you pass. StealthCoder reads the problem on screen and surfaces a working solution in under 2 seconds. Invisible to screen share. The proctor sees nothing. Built by an Amazon engineer who realized the OA tests how well you memorized 200 problems, not how well you code.

Get StealthCoder
What this means

The trap is treating this like a subset-sum problem. You can't just brute-force every possible move and pick the one that maximizes your score. Instead, you model it as a two-player game where both players play optimally. The real pattern: use memoization to cache whether a player can win from a given game state, indexed by the range of numbers available (use bitmask or a tuple of boundaries). Each recursive call represents a decision point where the current player picks a number, leaving the opponent with a reduced range. The opponent then tries to beat the current player's remaining target. When you frame it as 'can the current player win from this state,' the base cases and transitions fall into place. Bit manipulation and memoization work together here to avoid re-evaluating the same game state twice. Most failures come from not recognizing this is game tree exploration, not optimization.

Pattern tags

The honest play

You know the problem. Make sure you actually pass it.

Can I Win recycles across companies for a reason. It's medium-tier, and most candidates blank under the timer. StealthCoder is the hedge: an AI overlay invisible during screen share. It reads the problem and surfaces a working solution in under 2 seconds. Built by an Amazon engineer who realized the OA tests how well you memorized 200 problems, not how well you code. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Can I Win interview FAQ

Why doesn't a greedy approach work for this problem?+

Greedy fails because picking the largest available number doesn't guarantee overall victory. Your opponent plays optimally too, and they'll respond strategically. You need to evaluate the entire game tree, not just the immediate best move. Memoization lets you avoid recalculating subtrees.

How do I represent the game state for memoization?+

Store which numbers remain available. You can use bitmask (faster, cleaner) or tuple bounds (start index, end index) depending on the input size. Each state answer is boolean: can the current player win from here? Cache and return that.

Is this still asked at LinkedIn?+

LinkedIn has asked it, though the exact frequency across their full pipeline is unclear from public reports. It's a solid medium-difficulty game theory problem, so it fits their coding assessment pattern well.

What's the relationship between game theory and dynamic programming here?+

Game theory defines the problem structure: two optimal players, alternating moves, win condition. DP (memoization) is the implementation. You're not optimizing a value; you're solving a reachability problem in a game tree efficiently.

How hard is 30% acceptance really?+

30% means most people don't pass. The gap isn't raw difficulty; it's recognizing the state representation and realizing both players play optimally. Once you see the memoized recursion, coding it is straightforward. The insight is the bottleneck.

Want the actual problem statement? View "Can I Win" on LeetCode →

Frequency and company-tag data sourced from public community-maintained interview-report repos. Problem, description, and trademark © LeetCode. StealthCoder is not affiliated with LeetCode.