The instructions say:
If the input has rows of different lengths, this is to be solved as follows:
- Pad to the left with spaces.
- Don’t pad to the right.
I implemented this as written, and got a slew of error messages. After some painful research (just try to get lldb to display a multi-dimensional C array!) it turned out tests provided require that the input is always left-justified, and spaces at the end of the line of the transposed text are trimmed.