Sha256: ac2889e5ae457eeed57ca2e9527b23ba15c6c4be87e22de5ba1a1890c612d45c

Contents?: true

Size: 1.44 KB

Versions: 145

Compression:

Stored size: 1.44 KB

Contents

{
  "exercise": "pascals-triangle",
  "version": "1.0.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
        },
        {
          "description": "null/no rows",
          "property": "rows",
          "count": null,
          "expected": -1
        }
      ]
    }
  ]
}

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
trackler-2.2.1.43 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.42 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.41 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.40 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.39 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.38 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.37 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.36 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.35 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.34 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.33 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.32 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.31 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.30 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.29 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.28 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.27 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.26 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.25 problem-specifications/exercises/pascals-triangle/canonical-data.json
trackler-2.2.1.24 problem-specifications/exercises/pascals-triangle/canonical-data.json