Sha256: 37d9772d04d97c25efd457312e5505036ce82d2e382dbd6fd5003f5b92252ac7

Contents?: true

Size: 1.21 KB

Versions: 98

Compression:

Stored size: 1.21 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": "no 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": "no rows",
            "count": null,
            "expected": -1
        }
      ]
    }
}

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
trackler-2.0.6.42 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.41 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.40 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.39 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.38 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.37 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.36 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.35 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.34 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.33 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.32 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.31 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.30 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.29 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.28 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.27 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.26 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.25 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.24 common/exercises/pascals-triangle/canonical-data.json
trackler-2.0.6.23 common/exercises/pascals-triangle/canonical-data.json