pls let me know where i am doing wrong i am getting all test case tle.
Painters Problem tle for all testcase?
I have edited your code a bit, try to submit it .
i tried to submit but output section where it tells about result of testcase is empty since the problem is not green ticked i dont think so it worked