Could u please check my code and tell me some flaws due to which I am not able to pass all the test cases.
Link for the code: https://ide.codingblocks.com/s/414958
Check my solution
for cases with n=1000
you get error see this:
can u elaborate why i would get an error for that test case
@deonaryan080800,
Your code and logic is correct. There was an error while printing the answer.
https://ide.codingblocks.com/s/416444 corrected code. Error in Line: 25
Input:
5 4
OXOO
OOOO
OOXO
XOOO
XXOO
Your output:
1000
1111
0001
0001
0001
Correct Output:
1 0 0 0
1 1 1 1
0 0 0 1
0 0 0 1
0 0 0 1