Problem 1324 · Medium

Print Words Vertically

Split the sentence into words, then read the k-th character of every word to build row k, padding shorter words with spaces and trimming trailing spaces.

Open the interactive visualisation