├── Bits └── Bits.cpp ├── Data Structures ├── MCS Segment Tree.cpp ├── Ordered Map.cpp ├── Ordered Set.cpp ├── Segment Tree Lazy.cpp └── sparse table.cpp ├── Dynamic Programming ├── Buliding.cpp ├── Digits.cpp ├── Knapsack2.cpp ├── LPS lexicographically.cpp ├── Longest Plandrom sub-sequence with Build.cpp └── Nested.cpp ├── Geometry ├── General Geometry.cpp ├── Geometry 2D.cpp └── Geometry Notes.txt ├── Graphs ├── Graph Data structures │ ├── DSU (Struct).cpp │ ├── DSU at Groups.cpp │ └── DSU.cpp ├── Miscellaneous Graphs │ ├── BFS 01.cpp │ ├── Longest Path in tree.cpp │ ├── Minimum Spanning Tree (MST).cpp │ ├── Tarjan.cpp │ └── Topological Sort.cpp └── Shortest Path Algorithms │ ├── Bellman (find SP & return it).cpp │ ├── Bellman (negative cycles).cpp │ ├── Dijkstra with struct.cpp │ ├── Dijkstra.cpp │ ├── Dijkstra2D.cpp │ └── Floyd.cpp ├── Math ├── Big Sum and Multiply and Divisibility.cpp ├── Cout Divisors of N Fast.cpp ├── Divisors Of N.cpp ├── Equations.txt ├── Extended Euclidean GCD.cpp ├── Fast Power.cpp ├── Fast Prime Factorization.cpp ├── GCD.cpp ├── Generate All Divisors From 1 to N.cpp ├── Generate Prime divisors from 1 to N.cpp ├── Get Sorted Devisors.cpp ├── Is Prime.cpp ├── LCM ├── LinearSieve.cpp ├── Mod Inverse.cpp ├── Mod Inverse2.cpp ├── NCR pre Calac.cpp ├── NCR.cpp ├── NPR.cpp ├── Quadratic Equation.cpp ├── optimized Round Ceil.cpp └── sum Power.cpp ├── Miscellaneous ├── AllSubArraySum.cpp ├── Big Int.cpp ├── Coordinate Copmression.cpp ├── LIS (N-log(N)).cpp ├── Max Histogram Area.cpp ├── Max Sum of subarray.cpp ├── Meet in the midel.cpp ├── Negative Base Converter.cpp ├── Next Greater Element.cpp ├── Number systems conversions.cpp ├── Pascal's Triangle.cpp ├── Prefix Sum 2D.cpp ├── Rotate Matrix right.cpp ├── Sum all Divisors in rang 1 to X.cpp ├── Sum all XOR sub arrays.cpp ├── Ternary Search.cpp ├── Th-Number Does not have Digit X.cpp ├── Trailing Zeros Of Factorial N.cpp └── UsefulFacts.txt ├── README.md ├── Reference 2024 For ECPC.pdf ├── Strings ├── Hashing.cpp └── Z-Function.cpp └── Template └── Template.cpp /Bits/Bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Bits/Bits.cpp -------------------------------------------------------------------------------- /Data Structures/MCS Segment Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Data Structures/MCS Segment Tree.cpp -------------------------------------------------------------------------------- /Data Structures/Ordered Map.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Data Structures/Ordered Map.cpp -------------------------------------------------------------------------------- /Data Structures/Ordered Set.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Data Structures/Ordered Set.cpp -------------------------------------------------------------------------------- /Data Structures/Segment Tree Lazy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Data Structures/Segment Tree Lazy.cpp -------------------------------------------------------------------------------- /Data Structures/sparse table.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Data Structures/sparse table.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Buliding.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Dynamic Programming/Buliding.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Digits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Dynamic Programming/Digits.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Knapsack2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Dynamic Programming/Knapsack2.cpp -------------------------------------------------------------------------------- /Dynamic Programming/LPS lexicographically.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Dynamic Programming/LPS lexicographically.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Longest Plandrom sub-sequence with Build.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Dynamic Programming/Longest Plandrom sub-sequence with Build.cpp -------------------------------------------------------------------------------- /Dynamic Programming/Nested.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Dynamic Programming/Nested.cpp -------------------------------------------------------------------------------- /Geometry/General Geometry.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Geometry/General Geometry.cpp -------------------------------------------------------------------------------- /Geometry/Geometry 2D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Geometry/Geometry 2D.cpp -------------------------------------------------------------------------------- /Geometry/Geometry Notes.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Geometry/Geometry Notes.txt -------------------------------------------------------------------------------- /Graphs/Graph Data structures/DSU (Struct).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Graph Data structures/DSU (Struct).cpp -------------------------------------------------------------------------------- /Graphs/Graph Data structures/DSU at Groups.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Graph Data structures/DSU at Groups.cpp -------------------------------------------------------------------------------- /Graphs/Graph Data structures/DSU.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Graph Data structures/DSU.cpp -------------------------------------------------------------------------------- /Graphs/Miscellaneous Graphs/BFS 01.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Miscellaneous Graphs/BFS 01.cpp -------------------------------------------------------------------------------- /Graphs/Miscellaneous Graphs/Longest Path in tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Miscellaneous Graphs/Longest Path in tree.cpp -------------------------------------------------------------------------------- /Graphs/Miscellaneous Graphs/Minimum Spanning Tree (MST).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Miscellaneous Graphs/Minimum Spanning Tree (MST).cpp -------------------------------------------------------------------------------- /Graphs/Miscellaneous Graphs/Tarjan.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Miscellaneous Graphs/Tarjan.cpp -------------------------------------------------------------------------------- /Graphs/Miscellaneous Graphs/Topological Sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Miscellaneous Graphs/Topological Sort.cpp -------------------------------------------------------------------------------- /Graphs/Shortest Path Algorithms/Bellman (find SP & return it).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Shortest Path Algorithms/Bellman (find SP & return it).cpp -------------------------------------------------------------------------------- /Graphs/Shortest Path Algorithms/Bellman (negative cycles).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Shortest Path Algorithms/Bellman (negative cycles).cpp -------------------------------------------------------------------------------- /Graphs/Shortest Path Algorithms/Dijkstra with struct.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Shortest Path Algorithms/Dijkstra with struct.cpp -------------------------------------------------------------------------------- /Graphs/Shortest Path Algorithms/Dijkstra.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Shortest Path Algorithms/Dijkstra.cpp -------------------------------------------------------------------------------- /Graphs/Shortest Path Algorithms/Dijkstra2D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Shortest Path Algorithms/Dijkstra2D.cpp -------------------------------------------------------------------------------- /Graphs/Shortest Path Algorithms/Floyd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Graphs/Shortest Path Algorithms/Floyd.cpp -------------------------------------------------------------------------------- /Math/Big Sum and Multiply and Divisibility.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Big Sum and Multiply and Divisibility.cpp -------------------------------------------------------------------------------- /Math/Cout Divisors of N Fast.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Cout Divisors of N Fast.cpp -------------------------------------------------------------------------------- /Math/Divisors Of N.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Divisors Of N.cpp -------------------------------------------------------------------------------- /Math/Equations.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Equations.txt -------------------------------------------------------------------------------- /Math/Extended Euclidean GCD.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Extended Euclidean GCD.cpp -------------------------------------------------------------------------------- /Math/Fast Power.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Fast Power.cpp -------------------------------------------------------------------------------- /Math/Fast Prime Factorization.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Fast Prime Factorization.cpp -------------------------------------------------------------------------------- /Math/GCD.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/GCD.cpp -------------------------------------------------------------------------------- /Math/Generate All Divisors From 1 to N.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Generate All Divisors From 1 to N.cpp -------------------------------------------------------------------------------- /Math/Generate Prime divisors from 1 to N.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Generate Prime divisors from 1 to N.cpp -------------------------------------------------------------------------------- /Math/Get Sorted Devisors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Get Sorted Devisors.cpp -------------------------------------------------------------------------------- /Math/Is Prime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Is Prime.cpp -------------------------------------------------------------------------------- /Math/LCM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/LCM -------------------------------------------------------------------------------- /Math/LinearSieve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/LinearSieve.cpp -------------------------------------------------------------------------------- /Math/Mod Inverse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Mod Inverse.cpp -------------------------------------------------------------------------------- /Math/Mod Inverse2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Mod Inverse2.cpp -------------------------------------------------------------------------------- /Math/NCR pre Calac.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/NCR pre Calac.cpp -------------------------------------------------------------------------------- /Math/NCR.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/NCR.cpp -------------------------------------------------------------------------------- /Math/NPR.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/NPR.cpp -------------------------------------------------------------------------------- /Math/Quadratic Equation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/Quadratic Equation.cpp -------------------------------------------------------------------------------- /Math/optimized Round Ceil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/optimized Round Ceil.cpp -------------------------------------------------------------------------------- /Math/sum Power.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Math/sum Power.cpp -------------------------------------------------------------------------------- /Miscellaneous/AllSubArraySum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/AllSubArraySum.cpp -------------------------------------------------------------------------------- /Miscellaneous/Big Int.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Big Int.cpp -------------------------------------------------------------------------------- /Miscellaneous/Coordinate Copmression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Coordinate Copmression.cpp -------------------------------------------------------------------------------- /Miscellaneous/LIS (N-log(N)).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/LIS (N-log(N)).cpp -------------------------------------------------------------------------------- /Miscellaneous/Max Histogram Area.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Max Histogram Area.cpp -------------------------------------------------------------------------------- /Miscellaneous/Max Sum of subarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Max Sum of subarray.cpp -------------------------------------------------------------------------------- /Miscellaneous/Meet in the midel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Meet in the midel.cpp -------------------------------------------------------------------------------- /Miscellaneous/Negative Base Converter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Negative Base Converter.cpp -------------------------------------------------------------------------------- /Miscellaneous/Next Greater Element.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Next Greater Element.cpp -------------------------------------------------------------------------------- /Miscellaneous/Number systems conversions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Number systems conversions.cpp -------------------------------------------------------------------------------- /Miscellaneous/Pascal's Triangle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Pascal's Triangle.cpp -------------------------------------------------------------------------------- /Miscellaneous/Prefix Sum 2D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Prefix Sum 2D.cpp -------------------------------------------------------------------------------- /Miscellaneous/Rotate Matrix right.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Rotate Matrix right.cpp -------------------------------------------------------------------------------- /Miscellaneous/Sum all Divisors in rang 1 to X.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Sum all Divisors in rang 1 to X.cpp -------------------------------------------------------------------------------- /Miscellaneous/Sum all XOR sub arrays.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Sum all XOR sub arrays.cpp -------------------------------------------------------------------------------- /Miscellaneous/Ternary Search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Ternary Search.cpp -------------------------------------------------------------------------------- /Miscellaneous/Th-Number Does not have Digit X.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Th-Number Does not have Digit X.cpp -------------------------------------------------------------------------------- /Miscellaneous/Trailing Zeros Of Factorial N.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/Trailing Zeros Of Factorial N.cpp -------------------------------------------------------------------------------- /Miscellaneous/UsefulFacts.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Miscellaneous/UsefulFacts.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/README.md -------------------------------------------------------------------------------- /Reference 2024 For ECPC.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Reference 2024 For ECPC.pdf -------------------------------------------------------------------------------- /Strings/Hashing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Strings/Hashing.cpp -------------------------------------------------------------------------------- /Strings/Z-Function.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Strings/Z-Function.cpp -------------------------------------------------------------------------------- /Template/Template.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YousryEssam/Competitive-programming-library/HEAD/Template/Template.cpp --------------------------------------------------------------------------------