Coin probability problem Dynamic Programming

Revision en1, by hackerbaba, 2020-05-26 00:25:29

I have recently understood handling float and doubles.

Could you please help me understand why this is passing some test cases for the problem whereas failing for some? I probably have created some language error which I am unable to understand.

Any other inputs are appreciated.

Tags coin, #dp, #2d-dp, #dynamic programing

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English hackerbaba 2020-05-26 00:25:29 431 Initial revision (published)