Number of ways that r runs can be scored in b balls at the loss of atmost w wickets
Answers
Answered by
0
Answer:
Input: R = 4, B = 2, W = 2
Output: 7
The 7 ways are:
0, 4
4, 0
Wicket, 4
4, Wicket
1, 3
3, 1
2, 2
Input: R = 40, B = 10, W = 4
Output: 653263
Similar questions