Skip to content

Commit 7ef3db5

Browse files
committed
Runtime: 6 ms (Top 49.82%) | Memory: 5.8 MB (Top 96.45%)
1 parent d4bc43a commit 7ef3db5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/C/Consecutive Numbers Sum/Consecutive Numbers Sum.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 6 ms (Top 49.82%) | Memory: 5.8 MB (Top 96.45%)
12
class Solution {
23
public:
34
int consecutiveNumbersSum(int n) {
@@ -11,4 +12,4 @@ class Solution {
1112
}
1213
return count+1;
1314
}
14-
};
15+
};

0 commit comments

Comments
 (0)