Kartikay J. answered 08/10/25
BA in Statistical Science from Cornell University
Let's call the 2 numbers A and B.
Initially, A starts at 0 and B starts at 0.
Let us consider possible stratergies:
1) All coin flip results go to either A or B. This is not optimal because it models a random walk with expected value being 0.
2) Alternate coin flip results between A and B. So first coin flip result affect A, the second result affects B, the third result affect A, etc. This is not optimal because we cannot prevent either number from decreasing thereby reducing long term average value.
3) If the coins flip is head only apply the result to A otherwise apply the result to B. This ensure A keeps growing and B can't get any lower than 0 anways.
Conclusion:
3) is the most optimal way.