my sol : https://ide.codingblocks.com/s/260301
can u pls tell me how to optimize my code as i m unable to see where my code is exceeding tl ??
According to me it should run fine
my sol : https://ide.codingblocks.com/s/260301
can u pls tell me how to optimize my code as i m unable to see where my code is exceeding tl ??
According to me it should run fine
ur apporach is correct (dfs +floodfill).
i think the checker is not working correctly because editorial solution is also showing tle.
try to submit this editorial solution -> https://ide.codingblocks.com/s/245772
Try to submit the solution here . Many people have got tle in this solution because there was some error in the checker. https://csacademy.com/contest/archive/task/black-shapes/statement/
so is it the problem with TCs i guess ??
can u pls get the problem fixed or it can’t be fixed ??
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.