README.md (949B) - raw
1 # Matrix 2 3 Welcome to Matrix on Exercism's Perl 5 Track. 4 If you need help running the tests or submitting your code, check out `HELP.md`. 5 6 ## Instructions 7 8 Given a string representing a matrix of numbers, return the rows and columns of 9 that matrix. 10 11 So given a string with embedded newlines like: 12 13 ```text 14 9 8 7 15 5 3 2 16 6 6 7 17 ``` 18 19 representing this matrix: 20 21 ```text 22 1 2 3 23 |--------- 24 1 | 9 8 7 25 2 | 5 3 2 26 3 | 6 6 7 27 ``` 28 29 your code should be able to spit out: 30 31 - A list of the rows, reading each row left-to-right while moving 32 top-to-bottom across the rows, 33 - A list of the columns, reading each column top-to-bottom while moving 34 from left-to-right. 35 36 The rows for our example matrix: 37 38 - 9, 8, 7 39 - 5, 3, 2 40 - 6, 6, 7 41 42 And its columns: 43 44 - 9, 5, 6 45 - 8, 3, 6 46 - 7, 2, 7 47 48 ## Source 49 50 ### Created by 51 52 - @bistik 53 54 ### Contributed to by 55 56 - @kytrinyx 57 - @m-dango 58 - @rfilipo 59 60 ### Based on 61 62 Warmup to the `saddle-points` warmup. - http://jumpstartlab.com