Two test cases failing


What is the error?

Hi @shruthi019
It is mentioned in the question when you encounter a # then you directly shift to the starting of next row and the strength remains the same but you have decreased s by 1 in this case which is wrong. And you are incrementing s by 1 when j==0 is wrong because strength remain unchangef when piyush moves from column m-1 to starting of next row. So just change j==0 to j==m-1

1 Like