Binary Search Tree: TypeScript Implementation of Search, Insert, Delete, and Validation
2026-04-26
Master the core BST operations (insert, delete, search) and their properties, understand BST limitations and the concept of balanced trees, with complete TypeScript code.
905 words
|
5 minutes
Depth-First Search: Recursive and Iterative TypeScript Implementations of DFS
2026-04-26
Master recursive and iterative templates for DFS in binary trees, graphs, and 2D arrays, and use TypeScript to solve classic problems such as path sum, island perimeter, and permutations.
971 words
|
5 minutes
Difference Arrays: Reducing Range Updates from O(n) to O(1)
2026-04-26
Understand the principles and implementation of difference arrays, and use TypeScript to solve common problems like range increments and flight booking statistics.
926 words
|
5 minutes
Divide and Conquer: TypeScript Implementations from Merge Sort to Quickselect
2026-04-26
Master the core ideas of divide and conquer—decompose, solve, and combine—by implementing merge sort, quicksort, quickselect, and more in TypeScript.
1037 words
|
5 minutes
Dynamic Programming: TypeScript in Practice from Climbing Stairs to the Knapsack Problem
2026-04-26
Master the core concepts of DP (optimal substructure, overlapping subproblems, state transitions) and use TypeScript to solve classic problems such as climbing stairs, the knapsack problem, longest common subsequence, and edit distance.
1034 words
|
5 minutes
Graphs: TypeScript Implementations of Adjacency Lists, DFS, BFS, and Topological Sort
2026-04-26
Build an adjacency list representation of graphs and implement depth-first search, breadth-first search, topological sort, and course schedule problems in TypeScript.
946 words
|
5 minutes
Hash Tables: TypeScript in Practice from Set to HashMap
2026-04-26
Understand how hash tables work, tips for using Map and Set in JavaScript/TypeScript, and how hashing applies to common frontend scenarios like deduplication, caching, and counters.
820 words
|
4 minutes
Heaps: The Ultimate Weapon for TopK Problems
2026-04-26
Master the principles and TypeScript implementation of max-heaps and min-heaps to solve high-frequency problems like TopK, merging K sorted lists, and finding the median in a data stream.
963 words
|
5 minutes