Double or nothing, when do you walk away?
Asked at Jane Street
You start with \1$. Each round you flip a fair coin: heads doubles your entire bankroll, tails wipes it to zero and the game ends. Before any flip you may stop and bank what you have.
When should you stop, and what is the game worth?
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.