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

Version Path
trackler-2.2.1.180 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.179 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.178 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.177 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.176 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.175 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.174 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.173 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.172 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.171 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.170 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.169 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.167 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.166 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.165 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.164 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.163 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.162 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.161 problem-specifications/exercises/saddle-points/canonical-data.json
trackler-2.2.1.160 problem-specifications/exercises/saddle-points/canonical-data.json