Sha256: 49acbcc3f2f6265cc12b1bbfd49e9491a31ba7379b40a83c9484bd85b0bdb75d
Contents?: true
Size: 1.85 KB
Versions: 87
Compression:
Stored size: 1.85 KB
Contents
{ "exercise": "saddle-points", "version": "1.1.0", "comments": [ "Matrix rows and columns are 0-indexed." ], "cases": [ { "description": "Can identify single saddle point", "comments": [ "This is the README example." ], "property": "saddlePoints", "input": { "matrix": [ [9, 8, 7], [5, 3, 2], [6, 6, 7] ] }, "expected": [ { "row": 1, "column": 0 } ] }, { "description": "Can identify that empty matrix has no saddle points", "property": "saddlePoints", "input": { "matrix": [ [] ] }, "expected": [] }, { "description": "Can identify lack of saddle points when there are none", "property": "saddlePoints", "input": { "matrix": [ [1, 2, 3], [3, 1, 2], [2, 3, 1] ] }, "expected": [] }, { "description": "Can identify multiple saddle points", "property": "saddlePoints", "input": { "matrix": [ [4, 5, 4], [3, 5, 5], [1, 5, 4] ] }, "expected": [ { "row": 0, "column": 1 }, { "row": 1, "column": 1 }, { "row": 2, "column": 1 } ] }, { "description": "Can identify saddle point in bottom right corner", "comments": [ "This is a permutation of the README matrix designed to test", "off-by-one errors." ], "property": "saddlePoints", "input": { "matrix": [ [8, 7, 9], [6, 7, 6], [3, 2, 5] ] }, "expected": [ { "row": 2, "column": 2 } ] } ] }
Version data entries
87 entries across 87 versions & 1 rubygems