C++ Data Structures & STL Containers
std::string operations, dynamic std::vector buffers, and fast hash lookups with std::unordered_map.
08. std::string Operations & Character Iteration
Iterate across `std::string` characters and use string utilities.
09. std::vector Dynamic Arrays & Iterators
Work with `std::vector`, dynamic resizing, and `<algorithm>` sorting.
10. std::unordered_map & Fast Lookups
Implement O(1) hash map lookups using C++ standard `std::unordered_map`.
Data Structures: O(1) LRU Cache (Doubly Linked List + Hash Map)
Design and implement a high-performance Least Recently Used (LRU) Cache supporting get() and put() in O(1) time complexity.
Data Structures: Trie (Prefix Tree) with Autocomplete & Frequency
Construct a high-performance Trie (Prefix Tree) supporting word insertions, prefix searches, frequency tracking, and autocomplete suggestions.
Data Structures: Binary Search Tree (Insert, Delete, LCA & Balancing)
Implement a complete Binary Search Tree (BST) with multi-case node deletion (0, 1, 2 children), traversals, Lowest Common Ancestor (LCA), and balance checking.
Data Structures: Binary Min-Heap & Continuous Stream Median
Construct an array-based Binary Min-Heap from scratch with sift-up/down, and implement a 2-Heap continuous stream median tracker.
Data Structures: Weighted Graph with Dijkstra's Shortest Path & BFS
Build an adjacency list weighted graph in C++, implementing BFS, DFS, cycle detection, and Dijkstra's shortest path with route reconstruction.
Data Structures: Singly Linked List (Insert, Delete, Reverse & Middle)
Implement a Singly Linked List with positional insertions, node deletions, in-place 3-pointer reversal, and Floyd's cycle & middle detection.
Data Structures: Circular Linked List (Split Halves & Josephus Problem)
Implement a Circular Linked List where the tail links back to the head, supporting list splitting and the classical Josephus elimination algorithm.