Help Needed, RECURSION Sucks

Revision en1, by alt_1234AA, 2022-07-01 21:00:26

Hello Codeforces, hope you are all doing good and are safe.

I was upsolving Starters 41, I was Black and White from Codechef, my code is running well in all testcases except last one.

Please Help me in resolving my issue : Link

Thank you in advance. Please share your approach, it would be great if it is recursive dp, I am bad at iterative dp at current situation.

Thank you and have a nice day.

Tags help me, tle

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English alt_1234AA 2022-07-01 21:01:16 11 Tiny change: '41, I was Black and' -> '41, I was supsolving Black and'
en1 English alt_1234AA 2022-07-01 21:00:26 487 Initial revision (published)