Skip to content

Commit fe05313

Browse files
committed
another golf
1 parent 3a74281 commit fe05313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/trees/ladder_decomposition/linear_kth_par.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ template<int KAPPA = 2> struct linear_kth_par {
2121
static_assert(KAPPA >= 1);
2222
int t = 1;
2323
vi st(n);
24-
auto calc = [&](int siz) {
25-
jmp[t] = st[max(0, siz - KAPPA * (t & -t))];
24+
auto calc = [&](int s) {
25+
jmp[t] = st[max(0, s - KAPPA * (t & -t))];
2626
t++;
2727
};
2828
auto dfs = [&](auto&& self, int v, int p) -> void {

0 commit comments

Comments
 (0)