System output issue


#1

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


#2

True.
Same solution accepted in LeetCode


#3

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


#4

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.


#5

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


#6

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