This is Discussion thread about Rat Chases its cheese
Discussion About Rat Chases its cheese
Wasted half an hour…
Just because of little misleading in the problem statement…
“Print N lines, containing M integers each. A 1 at a position (i,j) denotes that the (i,j)th cell is covered in the path and a 0 denotes that the cell is not covered in the path…”
everyone mind that in output every character( whether its 0 or 1) is separated by space…