This repository contains my solutions and detailed notes on Disjoint Set Union (DSU), Segment Trees, Binary Search, Suffix Arrays, and the Two Pointers technique. My goal is to build a personal library of clean, efficient implementations and learning resources.
- DSU (Union-Find with path compression & union by rank)
- Segment Tree (standard and lazy propagation)
- Binary Search (classic, bounds, and βsearch on answerβ)
- Suffix Array (construction, LCP, and pattern matching)
- Two Pointers (sliding window, pair-sum, subarray techniques)
Data-Structures-Algorithms/
βββ DSU/
β βββ Step - 1
β βββ Step - 2
β βββ Step - 3
β βββ Step - 4
β
β
βββ Segment_Tree/
| βββ Part - 1
| | βββ Step - 1
| | βββ Step - 2
| | βββ Step - 3
| | βββ Step - 4
β βββ Part - 2
| βββ Step - 1
| βββ Step - 2
| βββ Step - 3
| βββ Step - 4
β
βββ Binary_Search/
β βββ Step - 1
β βββ Step - 2
β βββ Step - 3
| βββ Step - 4
β βββ Step - 5
β
β
βββ Suffix_Array/
β βββ Step - 1
β βββ Step - 2
β βββ Step - 3
| βββ Step - 4
β βββ Step - 5
β
β
βββ Two_Pointers/
β βββ Step - 1
β βββ Step - 2
β βββ Step - 3
β
β
βββ ReadMe