тут вэлью (cht O(n), slope trick, все остальное): https://ei1333.github.io/library/
много известных алгоритмов есть на judge.yosupo.jp еще несколько алгоритмов есть на https://github.com/the-tourist/algo
bottom segment tree https://codeforces.com/blog/entry/18051
bit convolutions convolutions.cpp https://codeforces.com/blog/entry/72488 smart Elegia bit convolutions https://codeforces.com/blog/entry/92183 чел пытается понять https://codeforces.com/blog/entry/92128 тут же есть ссылка на библиотеку dario2994 https://atcoder.jp/contests/arc105/submissions/17532188 https://ideone.com/cN5vAl
fast hamiltonian path in directed graph https://codeforces.com/blog/entry/90513 это можно улучшить руками до undirected graph https://codeforces.com/blog/entry/90513?#comment-789975
delaunay triangulation/voronoi diagram https://codeforces.com/blog/entry/85638