Hello Codeforces, hope you are all doing good and are safe.
I was upsolving Starters 41, I was supsolving 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.