This is my personal repository for C++ implementations of algorithms appeared in Leetcode and competitive programming. It also contains notes from Competitive Programmer's Handbook (https://cses.fi/book/book.pdf).
- Quickselect
- Union find
- Shortest path: Dijkstra, Bellman-Ford
- Cycle detection: tortoise and hare
- Segment tree
- Trie tree
- Boyer Moore majority vote algorithm
- Kruskal's algorithm for MST with union find