Skip to content

Commit

Permalink
fix some logic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 9, 2024
1 parent 3851ca2 commit 49444b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/src/p0034.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ return {

if sum == x
then
answer = answer + 1
answer = answer + x
end
end

Expand Down
1 change: 1 addition & 0 deletions lua/src/p0076.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ return {
idx = idx + 1
counts[idx] = counts[idx] + idx

sum = 0
for i = idx,100,1
do
sum = sum + counts[i]
Expand Down

0 comments on commit 49444b7

Please sign in to comment.