Sha256: b0bcfcc79a1cfb3e6be11b069160726429fd83b9acab823f930284e9b176dddf

Contents?: true

Size: 620 Bytes

Versions: 139

Compression:

Stored size: 620 Bytes

Contents

Given a string representing a matrix of numbers, return the rows and columns of
that matrix.

So given a string with embedded newlines like:

```text
9 8 7
5 3 2
6 6 7
```

representing this matrix:

```text
    0  1  2
  |---------
0 | 9  8  7
1 | 5  3  2
2 | 6  6  7
```

your code should be able to spit out:

- A list of the rows, reading each row left-to-right while moving
  top-to-bottom across the rows,
- A list of the columns, reading each column top-to-bottom while moving
  from left-to-right.

The rows for our example matrix:

- 9, 8, 7
- 5, 3, 2
- 6, 6, 7

And its columns:

- 9, 5, 6
- 8, 3, 6
- 7, 2, 7

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
trackler-2.2.1.180 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.179 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.178 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.177 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.176 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.175 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.174 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.173 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.172 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.171 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.170 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.169 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.167 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.166 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.165 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.164 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.163 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.162 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.161 problem-specifications/exercises/matrix/description.md
trackler-2.2.1.160 problem-specifications/exercises/matrix/description.md