We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a74281 commit fe05313Copy full SHA for fe05313
library/trees/ladder_decomposition/linear_kth_par.hpp
@@ -21,8 +21,8 @@ template<int KAPPA = 2> struct linear_kth_par {
21
static_assert(KAPPA >= 1);
22
int t = 1;
23
vi st(n);
24
- auto calc = [&](int siz) {
25
- jmp[t] = st[max(0, siz - KAPPA * (t & -t))];
+ auto calc = [&](int s) {
+ jmp[t] = st[max(0, s - KAPPA * (t & -t))];
26
t++;
27
};
28
auto dfs = [&](auto&& self, int v, int p) -> void {
0 commit comments