System output issue


Coding in Java : System generated output shows up only a single column per row. Tried printing and locally, works fine.


Same solution accepted in LeetCode


I too think the Java tester is broken. When converted to C#, the code works fine.


The python tester is broken too. If I put the problematic input in the “test with custom input” section, it works ok, otherwise it outputs an entirely different result.


Yes, the same.
The answer is accepted by leetcode.


Change to java 1.8 which supports arraylist as output instead of array.
It’s the problem of int[][]