My code got a wrong answer case like this:
Input: "ABC", 2
For this case, the zig-zag pattern should be like this:
So the out put should be "ABC", is that right?
But why C is in the first line? From my point of view, the second position of first line should be blank, as indicated by the example in the problem description.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.