For simplicity of the program , one extra row and one extra column are allocated in m [ ] [ ] . 0 th row and 0 th column of m [ ] [ ] are not used
m = [ [ 0 for x in range ( n ) ] for x in range ( n ) ] NEW_LINE