2 test cases are failing

for printing end I put
if(col == m-1 || row ==n-1){
cout << " END";
}

hey ,
@reshusinghhh put above condition for printing END outside else condition.else for odd number of columns your code will never print END.

After doing so, all test cases failing

Ok resolved now, m and n need to replace :slight_smile:

okay, happy to help.
mark this doubt as resolved if you don’t have any further queries.

1 Like