├── CSES Solutions ├── Bitwise Operations │ ├── 01- Counting Bits.cpp │ ├── 02- Maximum Xor Subarray.cpp │ ├── 03- Maximum Xor Subset.cpp │ ├── 04- Number of Subset Xors.cpp │ ├── 10- SOS Bit Problem.cpp │ └── 11- And Subset Count.cpp ├── Introductory Problems │ ├── Apple Division.cpp │ ├── Bit Strings.cpp │ ├── Chessboard and Queens.cpp │ ├── Coin Piles.cpp │ ├── Creating Strings.cpp │ ├── Digit Queries.cpp │ ├── Gray Code.cpp │ ├── Increasing Array.cpp │ ├── Missing Number.cpp │ ├── Number Spiral.cpp │ ├── Palindrome Reorder.cpp │ ├── Permutations.cpp │ ├── Repetitions.cpp │ ├── Tower of Hanoi.cpp │ ├── Trailing Zeros.cpp │ ├── Two Knights.cpp │ ├── Two Sets.cpp │ └── Weird Algorithm.cpp └── readme.txt ├── Codeforces-EDU ├── 2-pointers │ ├── Step1 │ │ ├── A - Merging Arrays .cpp │ │ ├── B - Number of Smaller .cpp │ │ └── C - Number of Equal .cpp │ └── Step2 │ │ ├── A - Segment with Small Sum.cpp │ │ ├── B - Segment with Big Sum.cpp │ │ └── C - Number of Segments with Small Sum.cpp ├── Binary Search │ ├── Step 1 │ │ ├── A-Binary Search.cpp │ │ ├── B-Closest to the Left.cpp │ │ ├── C-Closest to the Right.cpp │ │ └── D- Fast search.cpp │ └── Step 2 │ │ └── B-Ropes.cpp ├── DSU │ ├── Step 1 │ │ ├── A-Disjoint Sets Union.cpp │ │ ├── B-Disjoint Sets Union 2.cpp │ │ ├── C-Experience.cpp │ │ └── D - Cutting a graph.cpp │ ├── Step2 │ │ ├── A - People are leaving .cpp │ │ ├── B - Parking.cpp │ │ ├── C - Restructuring Company.cpp │ │ └── readme.txt │ └── Step3 │ │ ├── A. DSU with rollback.cpp │ │ └── C - Dynamic Connectivity Offline .cpp ├── SegmentTree │ ├── Part1 │ │ ├── Step1 │ │ │ ├── A.cpp │ │ │ ├── B.cpp │ │ │ └── C.cpp │ │ ├── Step2 │ │ │ ├── A.cpp │ │ │ ├── B.cpp │ │ │ ├── C.cpp │ │ │ └── D.cpp │ │ ├── Step3 │ │ │ ├── A.cpp │ │ │ ├── B.cpp │ │ │ ├── C.cpp │ │ │ ├── D.cpp │ │ │ └── E.cpp │ │ └── Step4 │ │ │ └── A.cpp │ └── Part2 │ │ ├── Step1 │ │ ├── A.cpp │ │ ├── B.cpp │ │ └── C.cpp │ │ └── Step2 │ │ ├── A.cpp │ │ ├── B.cpp │ │ ├── C.cpp │ │ ├── D.cpp │ │ ├── E.cpp │ │ └── F.cpp └── Suffix Array │ ├── Step1 │ └── Suffix Array - 1.cpp │ ├── Step2 │ └── Suffix Array - 2.cpp │ ├── Step3 │ ├── A - Substring Search.cpp │ └── B - Counting Substrings.cpp │ ├── Step4 │ └── Suffix Array and LCP.cpp │ └── Step5 │ ├── A - Number of Different Substrings.cpp │ ├── B - Longest Common Substring.cpp │ ├── C - Sorting Substrings.cpp │ ├── D - Borders.cpp │ └── E - Refrain.cpp ├── ECPC 2025 Solutions ├── Day1 │ ├── A.cpp │ ├── B.cpp │ ├── C.cpp │ ├── D.cpp │ ├── G.cpp │ ├── H.cpp │ ├── I.cpp │ ├── J.cpp │ ├── L.cpp │ └── N.cpp └── Day2 │ ├── B.cpp │ ├── C.cpp │ ├── D.cpp │ ├── F.cpp │ ├── G.cpp │ ├── J.cpp │ ├── K.cpp │ └── L.cpp ├── Material └── statements.pdf ├── README.md └── Templates ├── Graph Theory ├── 2_sat.cpp ├── Floyed.cpp ├── MaxFlow (Dinic).cpp ├── Maximum Bipartite Matching.cpp ├── SCC (trajan).cpp ├── dijkstra.cpp ├── dsu with roll back.cpp └── dsu.cpp ├── Math and Number Theory ├── AndSumForRange.cpp ├── BabyStepGiantStep.cpp ├── BinaryTrie.cpp ├── Bitmask Operation.cpp ├── Combinatorics.cpp ├── EEA.cpp ├── FFT with mod.cpp ├── FFT.cpp ├── FWHT.cpp ├── Matrix Expo.cpp ├── NTT.cpp ├── Number TheoryFunctions.cpp ├── NumberOfDivisors (for large numbers).cpp ├── Pascal Triangle.cpp ├── Pollard.cpp ├── Solve equation.cpp ├── Xor Basis.cpp ├── from decimal to any base.cpp ├── int128.cpp ├── is_perfect_square.cpp ├── linear_sieve.cpp ├── phi.cpp └── primality test for large numbers.cpp ├── RQ Data Structure ├── 2dPrefixSum.cpp ├── FenwickTree.cpp ├── MergeSortSegmentTree.cpp ├── MoAlgorithm.cpp ├── PartialSum.cpp ├── PersistentSegmentTree.cpp ├── SegmentTree.cpp ├── SegmentTreeBeats.cpp ├── Sparse Table.cpp ├── Treap with lazy propegation.cpp ├── Treap.cpp ├── coordinate compression(one array).cpp ├── coordinateCopmression.cpp └── partial sum 2d.cpp ├── Some DSA ├── LCS (Nlog(N)).cpp ├── LIS.cpp ├── PermutaionHashing.cpp ├── Random.cpp ├── SOS dp.cpp ├── completeSearch.cpp └── orderd set , multiset .cpp ├── Strings ├── Hashing (substring).cpp ├── Hashing Treap.cpp ├── Hashing.cpp ├── HashingSegmentTree.cpp ├── Kmp.cpp ├── PalindromicTree.cpp ├── Suffix Array and LCP.cpp ├── SuffixArray.cpp ├── Trie.cpp ├── Z algorithm.cpp └── get_words.cpp └── Trees ├── Centroid Decomposition.cpp ├── dsu on tree (My Invented Style).cpp ├── dsu on tree [sack] .cpp └── dsu on tree.cpp /CSES Solutions/Bitwise Operations/01- Counting Bits.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Bitwise Operations/01- Counting Bits.cpp -------------------------------------------------------------------------------- /CSES Solutions/Bitwise Operations/02- Maximum Xor Subarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Bitwise Operations/02- Maximum Xor Subarray.cpp -------------------------------------------------------------------------------- /CSES Solutions/Bitwise Operations/03- Maximum Xor Subset.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Bitwise Operations/03- Maximum Xor Subset.cpp -------------------------------------------------------------------------------- /CSES Solutions/Bitwise Operations/04- Number of Subset Xors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Bitwise Operations/04- Number of Subset Xors.cpp -------------------------------------------------------------------------------- /CSES Solutions/Bitwise Operations/10- SOS Bit Problem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Bitwise Operations/10- SOS Bit Problem.cpp -------------------------------------------------------------------------------- /CSES Solutions/Bitwise Operations/11- And Subset Count.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Bitwise Operations/11- And Subset Count.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Apple Division.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Apple Division.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Bit Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Bit Strings.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Chessboard and Queens.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Chessboard and Queens.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Coin Piles.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Coin Piles.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Creating Strings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Creating Strings.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Digit Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Digit Queries.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Gray Code.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Gray Code.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Increasing Array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Increasing Array.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Missing Number.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Missing Number.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Number Spiral.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Number Spiral.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Palindrome Reorder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Palindrome Reorder.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Permutations.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Permutations.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Repetitions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Repetitions.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Tower of Hanoi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Tower of Hanoi.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Trailing Zeros.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Trailing Zeros.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Two Knights.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Two Knights.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Two Sets.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Two Sets.cpp -------------------------------------------------------------------------------- /CSES Solutions/Introductory Problems/Weird Algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/Introductory Problems/Weird Algorithm.cpp -------------------------------------------------------------------------------- /CSES Solutions/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/CSES Solutions/readme.txt -------------------------------------------------------------------------------- /Codeforces-EDU/2-pointers/Step1/A - Merging Arrays .cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/2-pointers/Step1/A - Merging Arrays .cpp -------------------------------------------------------------------------------- /Codeforces-EDU/2-pointers/Step1/B - Number of Smaller .cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/2-pointers/Step1/B - Number of Smaller .cpp -------------------------------------------------------------------------------- /Codeforces-EDU/2-pointers/Step1/C - Number of Equal .cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/2-pointers/Step1/C - Number of Equal .cpp -------------------------------------------------------------------------------- /Codeforces-EDU/2-pointers/Step2/A - Segment with Small Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/2-pointers/Step2/A - Segment with Small Sum.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/2-pointers/Step2/B - Segment with Big Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/2-pointers/Step2/B - Segment with Big Sum.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/2-pointers/Step2/C - Number of Segments with Small Sum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/2-pointers/Step2/C - Number of Segments with Small Sum.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Binary Search/Step 1 /A-Binary Search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Binary Search/Step 1 /A-Binary Search.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Binary Search/Step 1 /B-Closest to the Left.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Binary Search/Step 1 /B-Closest to the Left.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Binary Search/Step 1 /C-Closest to the Right.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Binary Search/Step 1 /C-Closest to the Right.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Binary Search/Step 1 /D- Fast search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Binary Search/Step 1 /D- Fast search.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Binary Search/Step 2/B-Ropes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Binary Search/Step 2/B-Ropes.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step 1/A-Disjoint Sets Union.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step 1/A-Disjoint Sets Union.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step 1/B-Disjoint Sets Union 2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step 1/B-Disjoint Sets Union 2.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step 1/C-Experience.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step 1/C-Experience.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step 1/D - Cutting a graph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step 1/D - Cutting a graph.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step2/A - People are leaving .cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step2/A - People are leaving .cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step2/B - Parking.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step2/B - Parking.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step2/C - Restructuring Company.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step2/C - Restructuring Company.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step2/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step3/A. DSU with rollback.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step3/A. DSU with rollback.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/DSU/Step3/C - Dynamic Connectivity Offline .cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/DSU/Step3/C - Dynamic Connectivity Offline .cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step1/A.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step1/A.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step1/B.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step1/B.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step1/C.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step1/C.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step2/A.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step2/A.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step2/B.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step2/B.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step2/C.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step2/C.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step2/D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step2/D.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step3/A.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step3/A.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step3/B.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step3/B.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step3/C.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step3/C.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step3/D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step3/D.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step3/E.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step3/E.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part1/Step4/A.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part1/Step4/A.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step1/A.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step1/A.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step1/B.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step1/B.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step1/C.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step1/C.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step2/A.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step2/A.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step2/B.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step2/B.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step2/C.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step2/C.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step2/D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step2/D.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step2/E.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step2/E.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/SegmentTree/Part2/Step2/F.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/SegmentTree/Part2/Step2/F.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step1/ Suffix Array - 1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step1/ Suffix Array - 1.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step2/ Suffix Array - 2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step2/ Suffix Array - 2.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step3/A - Substring Search.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step3/A - Substring Search.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step3/B - Counting Substrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step3/B - Counting Substrings.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step4/Suffix Array and LCP.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step4/Suffix Array and LCP.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step5/A - Number of Different Substrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step5/A - Number of Different Substrings.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step5/B - Longest Common Substring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step5/B - Longest Common Substring.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step5/C - Sorting Substrings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step5/C - Sorting Substrings.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step5/D - Borders.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step5/D - Borders.cpp -------------------------------------------------------------------------------- /Codeforces-EDU/Suffix Array/Step5/E - Refrain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Codeforces-EDU/Suffix Array/Step5/E - Refrain.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/A.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/A.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/B.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/B.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/C.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/C.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/D.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/G.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/G.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/H.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/H.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/I.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/I.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/J.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/J.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/L.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/L.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day1/N.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day1/N.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day2/B.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day2/B.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day2/C.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day2/C.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day2/D.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day2/D.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day2/F.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day2/F.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day2/G.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day2/G.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day2/J.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day2/J.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day2/K.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day2/K.cpp -------------------------------------------------------------------------------- /ECPC 2025 Solutions/Day2/L.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/ECPC 2025 Solutions/Day2/L.cpp -------------------------------------------------------------------------------- /Material/statements.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Material/statements.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SegmentTree-Codeforces-EDU -------------------------------------------------------------------------------- /Templates/Graph Theory/2_sat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Graph Theory/2_sat.cpp -------------------------------------------------------------------------------- /Templates/Graph Theory/Floyed.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Graph Theory/Floyed.cpp -------------------------------------------------------------------------------- /Templates/Graph Theory/MaxFlow (Dinic).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Graph Theory/MaxFlow (Dinic).cpp -------------------------------------------------------------------------------- /Templates/Graph Theory/Maximum Bipartite Matching.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Graph Theory/Maximum Bipartite Matching.cpp -------------------------------------------------------------------------------- /Templates/Graph Theory/SCC (trajan).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Graph Theory/SCC (trajan).cpp -------------------------------------------------------------------------------- /Templates/Graph Theory/dijkstra.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Graph Theory/dijkstra.cpp -------------------------------------------------------------------------------- /Templates/Graph Theory/dsu with roll back.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Graph Theory/dsu with roll back.cpp -------------------------------------------------------------------------------- /Templates/Graph Theory/dsu.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Graph Theory/dsu.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/AndSumForRange.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/AndSumForRange.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/BabyStepGiantStep.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/BabyStepGiantStep.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/BinaryTrie.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/BinaryTrie.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/Bitmask Operation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/Bitmask Operation.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/Combinatorics.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/Combinatorics.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/EEA.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/EEA.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/FFT with mod.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/FFT with mod.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/FFT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/FFT.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/FWHT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/FWHT.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/Matrix Expo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/Matrix Expo.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/NTT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/NTT.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/Number TheoryFunctions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/Number TheoryFunctions.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/NumberOfDivisors (for large numbers).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/NumberOfDivisors (for large numbers).cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/Pascal Triangle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/Pascal Triangle.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/Pollard.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/Pollard.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/Solve equation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/Solve equation.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/Xor Basis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/Xor Basis.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/from decimal to any base.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/from decimal to any base.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/int128.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/int128.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/is_perfect_square.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/is_perfect_square.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/linear_sieve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/linear_sieve.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/phi.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/phi.cpp -------------------------------------------------------------------------------- /Templates/Math and Number Theory/primality test for large numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Math and Number Theory/primality test for large numbers.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/2dPrefixSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/2dPrefixSum.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/FenwickTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/FenwickTree.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/MergeSortSegmentTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/MergeSortSegmentTree.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/MoAlgorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/MoAlgorithm.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/PartialSum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/PartialSum.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/PersistentSegmentTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/PersistentSegmentTree.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/SegmentTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/SegmentTree.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/SegmentTreeBeats.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/SegmentTreeBeats.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/Sparse Table.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/Sparse Table.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/Treap with lazy propegation.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/Treap with lazy propegation.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/Treap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/Treap.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/coordinate compression(one array).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/coordinate compression(one array).cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/coordinateCopmression.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/coordinateCopmression.cpp -------------------------------------------------------------------------------- /Templates/RQ Data Structure/partial sum 2d.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/RQ Data Structure/partial sum 2d.cpp -------------------------------------------------------------------------------- /Templates/Some DSA/LCS (Nlog(N)).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Some DSA/LCS (Nlog(N)).cpp -------------------------------------------------------------------------------- /Templates/Some DSA/LIS.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Some DSA/LIS.cpp -------------------------------------------------------------------------------- /Templates/Some DSA/PermutaionHashing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Some DSA/PermutaionHashing.cpp -------------------------------------------------------------------------------- /Templates/Some DSA/Random.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Some DSA/Random.cpp -------------------------------------------------------------------------------- /Templates/Some DSA/SOS dp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Some DSA/SOS dp.cpp -------------------------------------------------------------------------------- /Templates/Some DSA/completeSearch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Some DSA/completeSearch.cpp -------------------------------------------------------------------------------- /Templates/Some DSA/orderd set , multiset .cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Some DSA/orderd set , multiset .cpp -------------------------------------------------------------------------------- /Templates/Strings/Hashing (substring).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/Hashing (substring).cpp -------------------------------------------------------------------------------- /Templates/Strings/Hashing Treap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/Hashing Treap.cpp -------------------------------------------------------------------------------- /Templates/Strings/Hashing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/Hashing.cpp -------------------------------------------------------------------------------- /Templates/Strings/HashingSegmentTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/HashingSegmentTree.cpp -------------------------------------------------------------------------------- /Templates/Strings/Kmp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/Kmp.cpp -------------------------------------------------------------------------------- /Templates/Strings/PalindromicTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/PalindromicTree.cpp -------------------------------------------------------------------------------- /Templates/Strings/Suffix Array and LCP.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/Suffix Array and LCP.cpp -------------------------------------------------------------------------------- /Templates/Strings/SuffixArray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/SuffixArray.cpp -------------------------------------------------------------------------------- /Templates/Strings/Trie.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/Trie.cpp -------------------------------------------------------------------------------- /Templates/Strings/Z algorithm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/Z algorithm.cpp -------------------------------------------------------------------------------- /Templates/Strings/get_words.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Strings/get_words.cpp -------------------------------------------------------------------------------- /Templates/Trees/Centroid Decomposition.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Trees/Centroid Decomposition.cpp -------------------------------------------------------------------------------- /Templates/Trees/dsu on tree (My Invented Style).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Trees/dsu on tree (My Invented Style).cpp -------------------------------------------------------------------------------- /Templates/Trees/dsu on tree [sack] .cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Trees/dsu on tree [sack] .cpp -------------------------------------------------------------------------------- /Templates/Trees/dsu on tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahmoud-ayman1/Competitive_Programming/HEAD/Templates/Trees/dsu on tree.cpp --------------------------------------------------------------------------------