Sha256: 017be3dedbf9fced41c851bd692d1943041498ea1ef007096db0e37ddf4f368b

Contents?: true

Size: 521 Bytes

Versions: 22

Compression:

Stored size: 521 Bytes

Contents

So given a string with embedded newlines like:

> 9 8 7
> 5 3 2
> 6 6 7

representing this matrix:

```plain
    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

22 entries across 22 versions & 1 rubygems

Version Path
trackler-2.0.1.0 common/exercises/matrix/description.md
trackler-2.0.0.10 common/exercises/matrix/description.md
trackler-2.0.0.9 common/exercises/matrix/description.md
trackler-2.0.0.8 common/exercises/matrix/description.md
trackler-2.0.0.7 common/exercises/matrix/description.md
trackler-2.0.0.6 common/exercises/matrix/description.md
trackler-2.0.0.5 common/exercises/matrix/description.md
trackler-2.0.0.4 common/exercises/matrix/description.md
trackler-2.0.0.3 common/exercises/matrix/description.md
trackler-2.0.0.2 common/exercises/matrix/description.md
trackler-2.0.0.1 common/exercises/matrix/description.md
trackler-2.0.0.0 common/exercises/matrix/description.md
trackler-1.0.4.1 common/exercises/matrix/description.md
trackler-1.0.4.0 common/exercises/matrix/description.md
trackler-1.0.3.0 common/exercises/matrix/description.md
trackler-1.0.2.1 common/exercises/matrix/description.md
trackler-1.0.2.0 common/exercises/matrix/description.md
trackler-1.0.1.2 common/exercises/matrix/description.md
trackler-1.0.1.1 common/exercises/matrix/description.md
trackler-1.0.1.0 common/exercises/matrix/description.md