├── .gitignore ├── Common Techniques ├── Distinct in Range Queries.cpp └── Fibonacci in LogN.cpp ├── Graph Algorithms ├── 4.KosaRaju_Algo_SCC.cpp ├── BellmanFord.cpp ├── Cycle_in_DAG.cpp ├── Dijkstra.cpp ├── EdmondsKarp.cpp ├── EulerianCircuit.cpp ├── FloydWarshall.cpp ├── FordFulkerson_Algo.cpp ├── Kruskals.cpp ├── Prims.cpp ├── PrimsUpdated.cpp ├── Topological_sorting.cpp └── UnionFind.cpp ├── Number Theory └── MillerRabinDeterministic.cpp ├── Range Queries ├── Lazy_SGT.cpp ├── Mo_algo.cpp ├── Segment_tree.cpp └── Sparse_Table.cpp ├── String Algorithms ├── Prefix_Function.cpp ├── String_Hashing.cpp ├── Suffix_array.cpp ├── Trie.cpp └── ZAlgirthm.cpp ├── TemplateStuff ├── BuildSystemForCPP.sublime-build ├── Int_128.cpp └── Template.cpp └── Tree Algorithms ├── Binary_Lifting.cpp ├── Centroid_Tree.cpp ├── HLD.cpp ├── LCA_O_1.cpp └── LCA_tree.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | **/.DS_Store -------------------------------------------------------------------------------- /Common Techniques/Distinct in Range Queries.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Common Techniques/Distinct in Range Queries.cpp -------------------------------------------------------------------------------- /Common Techniques/Fibonacci in LogN.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Common Techniques/Fibonacci in LogN.cpp -------------------------------------------------------------------------------- /Graph Algorithms/4.KosaRaju_Algo_SCC.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/4.KosaRaju_Algo_SCC.cpp -------------------------------------------------------------------------------- /Graph Algorithms/BellmanFord.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/BellmanFord.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Cycle_in_DAG.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/Cycle_in_DAG.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Dijkstra.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/Dijkstra.cpp -------------------------------------------------------------------------------- /Graph Algorithms/EdmondsKarp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/EdmondsKarp.cpp -------------------------------------------------------------------------------- /Graph Algorithms/EulerianCircuit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/EulerianCircuit.cpp -------------------------------------------------------------------------------- /Graph Algorithms/FloydWarshall.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/FloydWarshall.cpp -------------------------------------------------------------------------------- /Graph Algorithms/FordFulkerson_Algo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/FordFulkerson_Algo.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Kruskals.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/Kruskals.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Prims.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/Prims.cpp -------------------------------------------------------------------------------- /Graph Algorithms/PrimsUpdated.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/PrimsUpdated.cpp -------------------------------------------------------------------------------- /Graph Algorithms/Topological_sorting.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/Topological_sorting.cpp -------------------------------------------------------------------------------- /Graph Algorithms/UnionFind.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Graph Algorithms/UnionFind.cpp -------------------------------------------------------------------------------- /Number Theory/MillerRabinDeterministic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Number Theory/MillerRabinDeterministic.cpp -------------------------------------------------------------------------------- /Range Queries/Lazy_SGT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Range Queries/Lazy_SGT.cpp -------------------------------------------------------------------------------- /Range Queries/Mo_algo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Range Queries/Mo_algo.cpp -------------------------------------------------------------------------------- /Range Queries/Segment_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Range Queries/Segment_tree.cpp -------------------------------------------------------------------------------- /Range Queries/Sparse_Table.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Range Queries/Sparse_Table.cpp -------------------------------------------------------------------------------- /String Algorithms/Prefix_Function.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/String Algorithms/Prefix_Function.cpp -------------------------------------------------------------------------------- /String Algorithms/String_Hashing.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/String Algorithms/String_Hashing.cpp -------------------------------------------------------------------------------- /String Algorithms/Suffix_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/String Algorithms/Suffix_array.cpp -------------------------------------------------------------------------------- /String Algorithms/Trie.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/String Algorithms/Trie.cpp -------------------------------------------------------------------------------- /String Algorithms/ZAlgirthm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/String Algorithms/ZAlgirthm.cpp -------------------------------------------------------------------------------- /TemplateStuff/BuildSystemForCPP.sublime-build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/TemplateStuff/BuildSystemForCPP.sublime-build -------------------------------------------------------------------------------- /TemplateStuff/Int_128.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/TemplateStuff/Int_128.cpp -------------------------------------------------------------------------------- /TemplateStuff/Template.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/TemplateStuff/Template.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Binary_Lifting.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Tree Algorithms/Binary_Lifting.cpp -------------------------------------------------------------------------------- /Tree Algorithms/Centroid_Tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Tree Algorithms/Centroid_Tree.cpp -------------------------------------------------------------------------------- /Tree Algorithms/HLD.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Tree Algorithms/HLD.cpp -------------------------------------------------------------------------------- /Tree Algorithms/LCA_O_1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Tree Algorithms/LCA_O_1.cpp -------------------------------------------------------------------------------- /Tree Algorithms/LCA_tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Priyansh19077/CP-Templates/HEAD/Tree Algorithms/LCA_tree.cpp --------------------------------------------------------------------------------