Need help in a Recursion question

Revision en1, by shivanshsingh9670, 2023-09-05 05:44:44

Question : 1553C

My Solution

"1?0???1001" is the test case my code in failing for.

I have made recursion calls for every scenario but for i=8, firstGoals = 3, secondGoals = 0 {This scenario is not coming. And I don't understand why}

Can someone help me with it please

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English shivanshsingh9670 2023-09-05 05:44:44 428 Initial revision (published)