Sliding Window: A General Approach to Subarray/Substring Problems
Master the two main sliding window templates (fixed-length and variable-length windows) and use TypeScript to solve classic problems like Longest Substring Without Repeating Characters and Minimum Window Substring.
1077 words
|
5 minutes
Stacks and Queues: A TypeScript Guide from Low-Level Implementation to Monotonic Stacks
Master the principles of stacks and queues, their TypeScript implementations, and how monotonic stacks and monotonic queues solve problems like Next Greater Element.
808 words
|
4 minutes
Introduction to Time and Space Complexity
Understand Big O notation from scratch and master common time and space complexity analysis. Includes front-end practical examples and diagrams, ideal for algorithm beginners to get started quickly.
995 words
|
5 minutes
Trie: The Ultimate Data Structure for Prefix Matching
Master the principles, construction, and querying of Trie trees, and implement high-frequency applications like search suggestions, word matching, and prefix counting in TypeScript.
864 words
|
4 minutes
2D Arrays: Matrix Operations and TypeScript in Practice
Master traversal techniques for 2D arrays, matrix operations like rotation, spiral order, and search, plus efficient range sum queries with 2D prefix sums.
938 words
|
5 minutes
Two Pointers on Arrays: An Optimization Tool from O(n²) to O(n)
Master the four core patterns of two pointers on arrays (left-right pointers, fast-slow pointers, front-back pointers, and separated pointers) to solve high-frequency algorithm problems with TypeScript.
938 words
|
5 minutes