IntroductionStructured dependency spine based roadmap for solving DSA Problems on leetcode.1. Linear Structures Hash TableA key maps to a value in constant time, which removes the need for a full scan.Prefix SumA running total is stored at each index, so the sum of any range is one subtraction.Two PointersTwo indices move through the data from different positions and meet at the answer.Sliding WindowA range with a start and an end moves across the data, and the contents are updated at each step.Binary SearchHalf of a sorted range is removed at each step until the target is found.StackItems are added and removed from one end, so the last item added is the first item removed.Monotonic StackA stack keeps its items in sorted order, which finds the next larger or smaller item in one pass. 2. Nodal & Grid Linked ListEach node points to the next node, and the pointers give the path through the data.Hybrid StructuresTwo structures are combined, such as a hash map and a linked list, to get the best properties of each.Matrix Index MathA two-dimensional grid is read as a flat array through a formula, and the neighbors are found by arithmetic. 3. Hierarchical Tree DFSEach branch is followed to its end before the next branch is examined.Tree BFSAll nodes at one level are visited before the nodes at the next level.Binary Search TreeEach node holds a value that is larger than its left subtree and smaller than its right subtree.HeapThe largest or smallest item is always at the top, and it is removed in logarithmic time.TrieEach node holds one character, and a path from the root spells a word. 4. Relational Graph DFSEach edge is followed to its end, and a visited set prevents a repeat visit.Graph BFSNodes are visited in order of distance from the start, which gives the shortest path in an unweighted graph.Topological SortNodes are put in an order where each node comes after all nodes that point to it.Union-FindTwo sets are merged and the set of any item is found in near-constant time. 5. Decision Space BacktrackingEach choice makes a branch, and a branch is undone when it does not give a valid result.1-D DPThe result for each state is stored in a list, and each new result is computed from the results before it.Multi-D / Grid DPThe result for each state is stored in a table with two or more dimensions, and each cell is computed from its neighbors.GreedyThe best local choice is made at each step and is not changed later.IntervalsRanges with a start and an end are sorted, and then merged, counted, or scheduled.