How fredyhdz-23/notebook-competitive-programming works
This is a personal C++ competitive-programming handbook for ICPC: programmers consult reusable algorithms, data structures, and contest templates while solving problems. Its contents are independent snippets rather than a connected application, so the graph groups them by domain and does not imply calls or a runtime pipeline. The README establishes the handbook’s purpose; the sampled files show representative implementations, while other listed modules are included by their documented paths and names.
Main entry points: cp-notebook C++ handbook
Components 31
Contest toolkit
- C++ handbook
cp-notebook - Contest template
cp-notebook/template.cpp - Utility snippets
cp-notebook/utils/snippets.cpp
Data structures
- Disjoint sets
cp-notebook/data_structures/dsu.cpp - Fenwick tree
cp-notebook/data_structures/fenwick_tree.cpp - Segment tree
cp-notebook/data_structures/segment_tree.cpp - Sparse table
cp-notebook/data_structures/sparse_table.cpp
Algorithms
- Answer search
cp-notebook/misc/binary_search_on_answer.cpp - 2D prefix sums
cp-notebook/misc/prefix_sums_2d.cpp - Two pointers
cp-notebook/misc/two_pointers.cpp - Coin change
cp-notebook/dp/coin_change.cpp - Knapsack
cp-notebook/dp/knapsack.cpp - Longest increasing subsequence
cp-notebook/dp/lis.cpp - BFS and DFS
cp-notebook/graphs/bfs_dfs.cpp - Cycle finding
cp-notebook/graphs/Find_cycle.cpp - Dijkstra
cp-notebook/graphs/dijkstra.cpp - Flood fill
cp-notebook/graphs/flood_fill.cpp - Floyd–Warshall
cp-notebook/graphs/floyd_warshall.cpp - Kruskal MST
cp-notebook/graphs/kruskal_mst.cpp - Topological sort
cp-notebook/graphs/topological_sort.cpp - Dinic max flow
cp-notebook/flujos/Dinic's.cpp - Modular combinatorics
cp-notebook/math/combinatorics_mod.cpp - Extended Euclid
cp-notebook/math/gcd_extended_euclid.cpp - Sieve and modular power
cp-notebook/math/sieve_and_modpow.cpp
String algorithms
- Aho–Corasick
cp-notebook/strings/Aho_Corasick.cpp - Suffix array
cp-notebook/strings/Suffix_array.cpp - Z function
cp-notebook/strings/Z_Function.cpp - String hashing
cp-notebook/strings/hashing.cpp - KMP
cp-notebook/strings/kmp.cpp - Manacher
cp-notebook/strings/manacher.cpp
Other components
- Competitive programmer
Connections 1
- Competitive programmer → C++ handbook: consults
README.md