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.51 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.50 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.49 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.48 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.47 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.46 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.45 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.44 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.43 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.42 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.41 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.40 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.39 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.38 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.37 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.36 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.35 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.34 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.33 problem-specifications/exercises/spiral-matrix/canonical-data.json
trackler-2.2.1.32 problem-specifications/exercises/spiral-matrix/canonical-data.json