← Amazon questions

Betting game simulation

Filed under Amazon

Simulate a betting game given an initial sum and a string of wins and losses (e.g. 'WLWWL'). Winning adds the current bet amount to the sum and resets the bet to $1; losing subtracts the current bet…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.