Sha256: 7c13289920e5025ba51d81709b2c8546e995b1797da96018c24fdf7337308408

Contents?: true

Size: 1.3 KB

Versions: 17

Compression:

Stored size: 1.3 KB

Contents

{
  "exercise": "pascals-triangle",
  "version": "1.1.0",
  "comments": [
    "Expectations are represented here as an array of arrays.",
    "How you represent this idiomatically in your language is up to you.",
    "An expectation of -1 indicates some sort of failure should occur"
  ],
  "cases": [
    {
      "description": "Given a count, return a collection of that many rows of pascal's triangle",
      "cases": [
        {
          "description": "zero rows",
          "property": "rows",
          "count": 0,
          "expected": []
        },
        {
          "description": "single row",
          "property": "rows",
          "count": 1,
          "expected": [[1]]
        },
        {
          "description": "two rows",
          "property": "rows",
          "count": 2,
          "expected": [[1], [1, 1]]
        },
        {
          "description": "three rows",
          "property": "rows",
          "count": 3,
          "expected": [[1], [1, 1], [1, 2, 1]]
        },
        {
          "description": "four rows",
          "property": "rows",
          "count": 4,
          "expected": [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]]
        },
        {
          "description": "negative rows",
          "property": "rows",
          "count": -1,
          "expected": -1
        }
      ]
    }
  ]
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
trackler-2.2.1.60 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.59 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.58 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.57 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.56 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.55 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.54 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.53 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.52 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.51 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.50 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.49 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.48 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.47 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.46 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.45 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.44 problem-specifications/exercises/pascals-triangle/canonical-data.json