Skip to content

Commit fb08780

Browse files
committed
Tiny shortening
1 parent 276ab0b commit fb08780

File tree

1 file changed

+1
-1
lines changed
  • content/data-structures

1 file changed

+1
-1
lines changed

content/data-structures/RMQ.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct RMQ {
1919

2020
RMQ(const vector<T>& V) {
2121
int N = sz(V), on = 1, depth = 1;
22-
while (on < sz(V)) on *= 2, depth++;
22+
while (on < N) on *= 2, depth++;
2323
jmp.assign(depth, V);
2424
rep(i,0,depth-1) rep(j,0,N)
2525
jmp[i+1][j] = min(jmp[i][j],

0 commit comments

Comments
 (0)