Skip to content

Commit

Permalink
Resolved functional error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrboojum committed Dec 19, 2024
1 parent 66620dd commit 9fecffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labs/misc/warmup/solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

// Some random chang eso that the local github runner can determine which lab to test
int solution(int *arr, int N) {
return (N*(N-1))/2;
return (N*(N+1))/2;
}

0 comments on commit 9fecffe

Please sign in to comment.