The python solution is giving TLE in this problem. Why? Can you share the python code for this problem if you have?
Python solution for Expand the Pond
Hello @govilayush i dont have python solution but i think python solution will not work as python code is slower then the c++ codes.
you shoudl try to imlement this in c++ i guess.
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.