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