Skip to content

Commit

Permalink
Merge branch 'main' of github.com:iagorrr/Competitive-Programming-Alg…
Browse files Browse the repository at this point in the history
…orithms
  • Loading branch information
iagorrr committed Dec 11, 2023
2 parents 3f904f3 + c2064c5 commit f8b3903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algorithms/trees/binary-lifting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ int N;

int kth_pos(int u, ll k) {
for (int i = 0; i <= MAXLOG2; i++) {
if (k & (1ll<<i)) u = bl[u][i];
if (k & (1ll << i)) u = bl[u][i];
}
return u;
return u;
}
void build() {
for (int i = 1; i <= MAXLOG2; i++) {
Expand Down
Binary file modified notebook.pdf
Binary file not shown.

0 comments on commit f8b3903

Please sign in to comment.