-
Notifications
You must be signed in to change notification settings - Fork 0
Home
rebeloper edited this page Jul 13, 2026
·
27 revisions
This tutorial walks through Data Structures & Algorithms in a carefully structured progression — entirely in Swift:
- Arrays & Strings
- Hash Maps & Hash Sets
- Linked Lists
- Stacks
- Queues & Deques
- Binary Trees
- Binary Search Trees
- Heaps & Priority Queues
- Tries
- Graphs
- Union-Find
- Segment & Fenwick Trees
- Two Pointers
- Sliding Window
- Fast and Slow Pointers
- Binary Search
- DFS and Backtracking
- BFS
- Topological Sort
- Union-Find Pattern
- Monotonic Stack
- Prefix Sum
- Merge Intervals
- Top-K and Heap Pattern
- 1D Dynamic Programming
- 2D Dynamic Programming
- Greedy
- Matrix Traversal
- Bit Manipulation Tricks
- Contains Duplicate
- Valid Anagram
- Two Sum
- Group Anagrams
- Top K Frequent Elements
- Product of Array Except Self
- Valid Sudoku
- Encode and Decode Strings
- Longest Consecutive Sequence
- Valid Palindrome
- Two Sum II - Input Array Is Sorted
- 3Sum
- Container With Most Water
- Trapping Rain Water
- Best Time to Buy and Sell Stock
- Longest Substring Without Repeating Characters
- Longest Repeating Character Replacement
- Permutation in String
- Minimum Window Substring
- Sliding Window Maximum
- Valid Parentheses
- Min Stack
- Evaluate Reverse Polish Notation
- Generate Parentheses
- Daily Temperatures
- Car Fleet
- Largest Rectangle in Histogram
- Binary Search
- Search a 2D Matrix
- Koko Eating Bananas
- Search in Rotated Sorted Array
- Find Minimum in Rotated Sorted Array
- Time Based Key-Value Store
- Median of Two Sorted Arrays
- Reverse Linked List
- Merge Two Sorted Lists
- Reorder List
- Remove Nth Node From End of List
- Copy List with Random Pointer
- Add Two Numbers
- Linked List Cycle
- Find the Duplicate Number
- LRU Cache
- Merge k Sorted Lists
- Reverse Nodes in k-Group
- Invert Binary Tree
- Maximum Depth of Binary Tree
- Diameter of Binary Tree
- Balanced Binary Tree
- Same Tree
- Subtree of Another Tree
- Lowest Common Ancestor of a Binary Search Tree
- Binary Tree Level Order Traversal
- Binary Tree Right Side View
- Count Good Nodes in Binary Tree
- Validate Binary Search Tree
- Kth Smallest Element in a BST
- Construct Binary Tree from Preorder and Inorder Traversal
- Binary Tree Maximum Path Sum
- Serialize and Deserialize Binary Tree
By following this path, you'll go from:
👉 "I memorized 150 answers 😵" to 👉 "I recognize the pattern before I finish reading the problem 💡"