SP10355 COINTOSS - Coin Tosses
Description
You have an unbiased coin which you want to keep tossing till you get N consecutive heads. You've already tossed the coin M times already and surprisingly, all tosses resulted in heads. What is the expected number of tosses needed till you get N consecutive heads?
Input Format
N/A
Output Format
N/A