Piyush and Magical Park

I am stuck at one corner case. My code is https://ide.codingblocks.com/s/176380.

Hey @adarsh_anand you dont need to write that if(i == n-1) block at the end. Suppose that the last row had the pattern …#… then your code would terminate at j = 0 only subtracting only 3.

1 Like