We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bbb80c commit 8fb8b71Copy full SHA for 8fb8b71
hard/matrix_determinant.js
@@ -60,7 +60,7 @@ function fillMatrix(matrix, arrElements) {
60
}
61
62
arrElements.forEach((element, index) => {
63
- const rowIndex = Math.floor(index / rows);
+ const rowIndex = Math.floor(index / columns);
64
const colIndex = index % columns;
65
matrix[rowIndex][colIndex] = element;
66
});
0 commit comments