Skip to content

Commit

Permalink
fixed recursion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
domonik authored Oct 13, 2023
1 parent ad41709 commit 13aff6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/recursions.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function checkMaxMatrix(){
console.log(maxTable.rows[1].cells[2].children[0].value)
first = parseInt(maxTable.rows[1].cells[1].children[0].value) + 2;
second = parseInt(maxTable.rows[1].cells[2].children[0].value) + 3;
third = parseInt(maxTable.rows[1].cells[2].children[0].value) + 1;
third = parseInt(maxTable.rows[2].cells[1].children[0].value) + 1;
result = Math.max(first, second, third);
cellElement = maxTable.rows[2].cells[2];
current = parseInt(cellElement.children[0].value);
Expand Down

0 comments on commit 13aff6e

Please sign in to comment.