(rows, cols)
| 19 | }; |
| 20 | |
| 21 | const initTabu = (rows, cols) => [ |
| 22 | new Array(rows).fill(1) /* Space O(ROWS) */, |
| 23 | new Array(cols).fill(1) /* Space O(COLS) */, |
| 24 | ]; |
| 25 | |
| 26 | const fillPlacements = (matrix, _row, _col) => { |
| 27 | const [rows, cols] = [matrix.length, matrix[0].length]; |