Sha256: 4ce7b961db2cbe4a1aa5b578a29c7a5680d43b2e97c7b31d2ec02def3e1ff749

Contents?: true

Size: 1.22 KB

Versions: 106

Compression:

Stored size: 1.22 KB

Contents

{
  "exercise": "spiral-matrix",
  "version": "1.0.0",
  "cases": [
    {
      "description": "empty spiral",
      "property": "spiralMatrix",
      "input": 0,
      "expected": []
    },
    {
      "description": "trivial spiral",
      "property": "spiralMatrix",
      "input": 1,
      "expected": [ [1] ]
    },
    {
      "description": "spiral of size 2",
      "property": "spiralMatrix",
      "input": 2,
      "expected": [ [1, 2]
                  , [4, 3] ]
    },
    {
      "description": "spiral of size 3",
      "property": "spiralMatrix",
      "input": 3,
      "expected": [ [1, 2, 3]
                  , [8, 9, 4]
                  , [7, 6, 5] ]
    },
    {
      "description": "spiral of size 4",
      "property": "spiralMatrix",
      "input": 4,
      "expected": [ [ 1,  2,  3, 4]
                  , [12, 13, 14, 5]
                  , [11, 16, 15, 6]
                  , [10,  9,  8, 7] ]
    },
    {
      "description": "spiral of size 5",
      "property": "spiralMatrix",
      "input": 5,
      "expected": [ [ 1,  2,  3,  4, 5]
                  , [16, 17, 18, 19, 6]
                  , [15, 24, 25, 20, 7]
                  , [14, 23, 22, 21, 8]
                  , [13, 12, 11, 10, 9] ]
    }
  ]
}

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
trackler-2.2.1.31 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.30 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.29 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.28 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.27 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.26 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.25 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.24 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.23 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.22 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.21 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.20 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.19 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.18 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.17 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.16 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.15 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.14 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.13 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.12 problem-specifications/exercises/spiral-matrix/canonical-data.json