diff --git a/transpose.md b/transpose.md new file mode 100644 index 0000000000..d7760ccf64 --- /dev/null +++ b/transpose.md @@ -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 . diff --git a/transpose.yml b/transpose.yml new file mode 100644 index 0000000000..7e2dbce38a --- /dev/null +++ b/transpose.yml @@ -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"