Back to Topics

Algorithms

Learn sorting, searching, graph algorithms, dynamic programming, and algorithmic thinking.

Coding rounds at senior levels expose whether you pattern-match quickly or get stuck in the weeds. The signal is not memorizing solutions—it's recognizing problem type, choosing the right structure, and implementing correctly under time pressure.

These topics build a precise mental model of patterns: when to use which structure, how complexity accumulates, and how to recognize the problem type. You'll learn to reason about trade-offs, implement under constraints, and articulate your approach clearly—so you come across as someone who thinks in structure, not just code.

Topics in this category

Arrays: Algorithm Patterns & Interview Problems

Read →

Master array data structure, common operations, and array-based algorithms for interviews.

Beginner8 min

Searching Algorithms: Patterns, Complexity & Interview Use Cases

Read →

Master searching algorithms: linear search, binary search, interpolation search, and their applications in coding interviews.

Beginner10 min

Sorting Algorithms: Patterns, Complexity & Interview Use Cases

Read →

Master sorting algorithms: bubble sort, merge sort, quick sort, heap sort, and their time/space complexities for coding interviews.

Intermediate15 min

Hashing: Patterns, Complexity & Interview Use Cases

Read →

Master hash functions, hash tables, collision resolution, and hashing algorithms for efficient data storage and retrieval.

Intermediate12 min

Strings: Patterns, Complexity & Interview Use Cases

Read →

Master string manipulation, common string algorithms, and pattern matching techniques for coding interviews.

Beginner10 min

Recursion: Patterns, Complexity & Interview Use Cases

Read →

Master recursion: base cases, recursive calls, memoization, and solving problems using recursive thinking.

Beginner11 min

Backtracking: Patterns, Complexity & Interview Use Cases

Read →

Master backtracking: systematic exploration of solution space by trying partial solutions and undoing choices that don't lead to solutions.

Intermediate13 min

Tree Traversal: Patterns, Complexity & Interview Use Cases

Read →

Master tree traversal algorithms: preorder, inorder, postorder, and level-order traversal for binary trees and n-ary trees.

Intermediate12 min

Graph Traversal (DFS/BFS)

Read →

Master graph traversal algorithms: Depth-First Search (DFS) and Breadth-First Search (BFS) for exploring graphs and solving graph problems.

Intermediate13 min

Dynamic Programming Basics

Read →

Master dynamic programming: memoization, tabulation, identifying DP problems, and solving optimization problems efficiently.

Intermediate15 min

Sliding Window Technique

Read →

Master the sliding window technique: efficiently solve subarray/substring problems by maintaining a window that slides through the array.

Intermediate12 min

Prefix Sum: Patterns, Complexity & Interview Use Cases

Read →

Master prefix sum technique: precompute cumulative sums to answer range sum queries in O(1) time after O(n) preprocessing.

Beginner10 min

Topological Sorting: Patterns, Complexity & Interview Use Cases

Read →

Master topological sorting: ordering vertices in a directed acyclic graph (DAG) such that for every edge (u,v), u comes before v.

Intermediate11 min

Dijkstra's Algorithm: Patterns, Complexity & Interview Use Cases

Read →

Master Dijkstra's algorithm for finding shortest paths in weighted graphs with non-negative edge weights.

Senior14 min

Bellman-Ford Algorithm: Patterns, Complexity & Interview Use Cases

Read →

Master Bellman-Ford algorithm for finding shortest paths in graphs with negative edge weights and detecting negative cycles.

Senior13 min