This is referring to LC-1293. However I faced similar issue in one more problem aswell. Can some please help me with this.
if I'm giving directions order as {{-1, 0}, {0, -1}, {0, 1}, {1, 0}} it fixes 'A' testcase but another of the test case 'B' fails .
If I give the order as {1,0},{0,1},{-1,0},{0,-1} test case 'B' passes and test case 'A' fails.
and both the test case give number as 44/46 passed.
Test case A: [[0,0],[1,0],[1,0],[1,0],[1,0],[1,0],[0,0],[0,1],[0,1],[0,1],[0,0],[1,0],[1,0],[0,0]]
4Test case B [[0,0,0,0,0,0,0,0,0,0],[0,1,1,1,1,1,1,1,1,0],[0,1,0,0,0,0,0,0,0,0],[0,1,0,1,1,1,1,1,1,1],[0,1,0,0,0,0,0,0,0,0],[0,1,1,1,1,1,1,1,1,0],[0,1,0,0,0,0,0,0,0,0],[0,1,0,1,1,1,1,1,1,1],[0,1,0,1,1,1,1,0,0,0],[0,1,0,0,0,0,0,0,1,0],[0,1,1,1,1,1,1,0,1,0],[0,0,0,0,0,0,0,0,1,0]]
1Please help me fix this confusion. Thanks In Advance