Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions transpose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Write a program that takes input text and outputs it -- transposed.

Roughly explained, the transpose of a matrix:

```
ABC
DEF
```

is given by:

```
AD
BE
CF
```

Rows become columns and columns become rows. See <https://en.wikipedia.org/wiki/Transpose>.
4 changes: 4 additions & 0 deletions transpose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
blurb: "Write a program that takes input text and outputs it transposed."
source: "Reddit r/dailyprogrammer challenge #270 [Easy]."
source_url: "https://www.reddit.com/r/dailyprogrammer/comments/4msu2x/challenge_270_easy_transpose_the_input_text"