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.159 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.158 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.157 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.156 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.155 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.154 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.153 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.152 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.151 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.150 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.149 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.148 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.147 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.146 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.145 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.144 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.143 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.142 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.141 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.140 problem-specifications/exercises/spiral-matrix/canonical-data.json