why this fail?

Revision en1, by sushantsangwan2006, 2025-03-23 12:34:20

312026676 why this code fail on test case number 3 my approach — I assume that if in final grid there exist a ball i.e v[i][j] == 1 but (v[i-1][j] != 1 && v[i][j-1] != 1 )(except i ==0 || j ==0 (0 based index)). then the answer is false otherwise true..

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sushantsangwan2006 2025-03-23 12:34:20 291 Initial revision (published)