LeetMap Pro

Interview problems top tech firms actually ask, ranked by frequency and recency. Free and open source.

Product

  • DSA
  • Strategy Roadmap
  • Coding Patterns
  • SQL Interview Hub
  • Big-O Guide

Top Firms

  • Google
  • Meta
  • Amazon
  • Apple
  • Netflix
  • Microsoft
  • Bloomberg
  • Citadel

Legal

  • Privacy Policy
  • Terms of Service
  • GitHub

© 2026 LeetMap Pro. All rights reserved.

LeetCode is a registered trademark of LeetCode LLC. Not affiliated with or endorsed by LeetCode.

LeetMap Pro
DSAPatternsStrategySQL

Browse by Pattern

Recurring algorithmic blueprints top tech companies test in coding interviews.

22 patterns·4,458 problems
⌘K
Sort:
Time ComplexityBig O

Loops, recursion, space & complexity trade-offs

Python EssentialsCheatsheet

Dicts, heaps, matrices, binary search & templates

Advanced & DP

1D Dynamic Programming

Linear recurrence relations, state machines, and optimal decision subproblems

546 questions·13E 278M 255H
Top:Google, Amazon, Microsoft, Meta
Advanced & DP

2D Dynamic Programming & Knapsack

Grid optimization, 0/1 knapsack, and dual string alignments

542 questions·11E 275M 256H
Top:Google, Amazon, Microsoft, Meta
Advanced & DP

Greedy Algorithms

Making locally optimal choices that guarantee global optimal outcomes

410 questions·43E 277M 90H
Top:Amazon, Google, Microsoft, Meta
Trees & Graphs

Tree Breadth-First Search (BFS)

Level-order traversal and horizontal tier exploration using queues

382 questions·42E 238M 102H
Top:Google, Amazon, Meta, Microsoft
Trees & Graphs

Tree Depth-First Search (DFS)

Recursive top-down and bottom-up traversals on hierarchical structures

353 questions·42E 224M 87H
Top:Google, Amazon, Meta, Microsoft
Fundamentals

Binary Search & Modified BS

Logarithmic O(log N) search on sorted spaces, monotonic predicates, and answers

303 questions·32E 172M 99H
Top:Google, Amazon, Meta, Microsoft
Trees & Graphs

Matrix & Grid Traversal

Coordinate navigation, spiral unwrapping, and 2D cellular automations

241 questions·35E 147M 59H
Top:Google, Amazon, Microsoft, Meta
Advanced & DP

Bit Manipulation

O(1) low-level bitwise operations, masks, and XOR parity tricks

226 questions·45E 107M 74H
Top:Google, Amazon, Microsoft, Meta
Fundamentals

Two Pointers

Opposite or parallel pointers traversing sequences in linear time O(N)

219 questions·61E 129M 29H
Top:Google, Amazon, Meta, Microsoft
Fundamentals

Prefix Sum & Hash Map

O(1) range queries and subarray sum lookups using cumulative totals

205 questions·17E 131M 57H
Top:Google, Amazon, Microsoft, Meta
Data Structures

Top K Elements & Priority Queues

Tracking extremes, medians, and K largest/smallest elements in dynamic streams

190 questions·13E 107M 70H
Top:Google, Amazon, Microsoft, Meta
Trees & Graphs

Graph Traversal (BFS & DFS)

Shortest paths, flood fills, and connected components in arbitrary networks

166 questions·3E 84M 79H
Top:Google, Amazon, Microsoft, Meta
Fundamentals

Sliding Window

Dynamic and fixed-size windows over contiguous subarrays or substrings

142 questions·17E 88M 37H
Top:Google, Amazon, Meta, Microsoft
Advanced & DP

Backtracking & Exhaustive Search

Combinations, permutations, and constraint satisfaction through pruned search trees

117 questions·3E 77M 37H
Top:Google, Amazon, Microsoft, Meta
Data Structures

Monotonic Stack & Queue

Nearest greater/smaller elements and range extremums in linear time

86 questions·2E 50M 34H
Top:Google, Amazon, Microsoft, Meta
Data Structures

Union-Find (Disjoint Set)

Connectivity, cycle detection, and clustering in undirected networks

83 questions·1E 47M 35H
Top:Google, Amazon, Meta, Microsoft
Fundamentals

Linked List In-Place Manipulation

Reversing, reordering, and partitioning pointer chains with O(1) space

70 questions·13E 50M 7H
Top:Google, Amazon, Meta, Microsoft
Data Structures

Trie (Prefix Tree)

Efficient prefix matching, autocomplete, and dictionary lookups

53 questions·4E 27M 22H
Top:Google, Amazon, Meta, Microsoft
Data Structures

Intervals & Overlap Scheduling

Managing overlapping timelines, meeting rooms, and range merges

41 questions·3E 27M 11H
Top:Google, Amazon, Microsoft, Bloomberg
Trees & Graphs

Topological Sort (Kahn's & DFS)

Linear dependency ordering and cycle detection in Directed Acyclic Graphs (DAG)

39 questions·1E 15M 23H
Top:Google, Amazon, Meta, Microsoft
Trees & Graphs

Binary Search Tree (BST)

Ordered hierarchical storage with monotonic inorder traversal

37 questions·9E 25M 3H
Top:Amazon, Google, Meta, Microsoft
Fundamentals

Fast & Slow Pointers

Cycle detection and midpoint traversal using Floyd's Tortoise and Hare algorithm

7 questions·4E 3M 0H
Top:Google, Amazon, Bloomberg, NeetCode 150

Why Learn LeetCode Coding Patterns?

Rather than memorizing hundreds of disconnected questions, learning patterns enables you to solve any unseen interview problem.

Recognize Signals

Identify key problem clues: sorted array points to Two Pointers or Binary Search; contiguous subarray points to Sliding Window; shortest path points to BFS.

Reusable Templates

Apply standard algorithmic blueprints that handle complex loop conditions, off-by-one errors, and pointer boundaries reliably.

FAANG Relevance

Over 85% of interview questions asked at Google, Meta, Amazon, Apple, and Microsoft map directly to these 22 foundational patterns.