Skip to content

Commit 1b775bd

Browse files
authored
Update stone-game-v.cpp
1 parent f4a5aa7 commit 1b775bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/stone-game-v.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Solution {
2121
for (int i = 0; i <= n - l; ++i) {
2222
const int j = i + l - 1;
2323
while (prefix[mid[i]] - prefix[i] < prefix[j + 1] - prefix[mid[i]]) {
24-
++mid[i];
24+
++mid[i]; // Time: O(n^2) in total
2525
}
2626
const int p = mid[i];
2727
max_score = 0;

0 commit comments

Comments
 (0)