Need help in a Recursion question

Правка en1, от 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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский shivanshsingh9670 2023-09-05 05:44:44 428 Initial revision (published)