Sha256: 5a7aab82e83ab63274adbde52a5188c236a8521e79ede8bed089a1752f1898d5

Contents?: true

Size: 1.22 KB

Versions: 18

Compression:

Stored size: 1.22 KB

Contents

{
    "#": [
      "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"
    ],
    "rows": {
      "description": "Given a count, return a collection of that many rows of pascal's triangle",
      "cases": [
        {
            "description": "zero rows",
            "count": 0,
            "expected": []
        },
        {
            "description": "single row",
            "count": 1,
            "expected": [[1]]
        },
        {
            "description": "two rows",
            "count": 2,
            "expected": [[1], [1, 1]]
        },
        {
            "description": "three rows",
            "count": 3,
            "expected": [[1], [1, 1], [1, 2, 1]]
        },
        {
            "description": "four rows",
            "count": 4,
            "expected": [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]]
        },
        {
            "description": "negative rows",
            "count": -1,
            "expected": -1
        },
        {
            "description": "null/no rows",
            "count": null,
            "expected": -1
        }
      ]
    }
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
trackler-2.0.8.15 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.14 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.13 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.12 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.11 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.10 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.9 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.8 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.7 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.6 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.5 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.4 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.3 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.2 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.8.1 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.7.0 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.44 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.43 common/exercises/pascals-triangle/canonical-data.json