Why I am getting wrong output ?
Painter Problem
I have edited your code… Try to submit it now…
I didn’t get why we need to multiply ans with t i.e. (ans * t) in line no. 73. Can you please explain it ?
Pls go through the online lecture on the same problem…