Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/her collection. This continues until one player runs out of pennies and loses the game.
Calculate the probability of winning for the first player, given the first player's number of coins, m, and the second player's number of coins, n.
Example:
Input: m = 1, n =1 Output: 0.50
https://en.wikipedia.org/wiki/Gambler%27s_ruin#Fair_coin_flipping
Remove all the words that end with "ain"
1029 Solvers
583 Solvers
214 Solvers
Getting the absolute index from a matrix
178 Solvers
311 Solvers