Sha256: 70a93c1c801dc3dcc1832bec47584c1d344e9f8c99febad1692a47b6ac0b4e00

Contents?: true

Size: 1.37 KB

Versions: 87

Compression:

Stored size: 1.37 KB

Contents

{
  "exercise": "spiral-matrix",
  "version": "1.1.0",
  "cases": [
    {
      "description": "empty spiral",
      "property": "spiralMatrix",
      "input": {
        "size": 0
      },
      "expected": []
    },
    {
      "description": "trivial spiral",
      "property": "spiralMatrix",
      "input": {
        "size": 1
      },
      "expected": [ [1] ]
    },
    {
      "description": "spiral of size 2",
      "property": "spiralMatrix",
      "input": {
        "size": 2
      },
      "expected": [ [1, 2]
                  , [4, 3] ]
    },
    {
      "description": "spiral of size 3",
      "property": "spiralMatrix",
      "input": {
        "size": 3
      },
      "expected": [ [1, 2, 3]
                  , [8, 9, 4]
                  , [7, 6, 5] ]
    },
    {
      "description": "spiral of size 4",
      "property": "spiralMatrix",
      "input": {
        "size": 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": {
        "size": 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

87 entries across 87 versions & 1 rubygems

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