is the code that i have wrriten it is able to to pass the sample test case but it is showing runtime error in two test cases please help.
Showing Run time Error
@Siddharth6780 There is already a hint video on this. Please refer that.
See the value of s does not decrease by 1 when column is last column i.e. j = m - 1. Also if park[i][j] equals to ‘#’ you just need to break the loop. Also suppose if in first row the value of flag remains true but in second row the value of s become less than k then you have print no.
Refer this and check how the conditional statements must go:
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.