grindmapcompany-wise LeetCode
All companies

Snowflake LeetCode Questions

100 questions all-time · 13 easy · 67 medium · 20 hard
# Problem Difficulty Frequency Acceptance
1Happy Number
Hash Table, Math, Two Pointers
Easy
100
0.6%
2Course Schedule II
Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort
Medium
96
0.6%
3Design In-Memory File System
Hash Table, String, Design, Trie, Sorting
Hard
93
0.5%
4Parallel Courses III
Array, Dynamic Programming, Graph Theory, Topological Sort
Hard
93
0.7%
5Minimum Window Substring
Hash Table, String, Sliding Window
Hard
91
0.5%
6Word Search II
Array, String, Backtracking, Trie, Matrix
Hard
90
0.4%
7Trapping Rain Water
Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack
Hard
86
0.7%
8Painting the Walls
Array, Dynamic Programming
Hard
85
0.5%
9Throne Inheritance
Hash Table, Tree, Depth-First Search, Design
Medium
84
0.7%
10Calculate Amount Paid in Taxes
Array, Simulation
Easy
82
0.7%
11Step-By-Step Directions From a Binary Tree Node to Another
String, Tree, Depth-First Search, Binary Tree
Medium
82
0.6%
12Maximum Number of Upgradable Servers
Array, Math, Binary Search
Medium
81
0.4%
13Find All Anagrams in a String
Hash Table, String, Sliding Window
Medium
81
0.5%
14Maximum Profit in Job Scheduling
Array, Binary Search, Dynamic Programming, Sorting
Hard
79
0.5%
15Count Vowel Substrings of a String
Hash Table, String
Easy
77
0.7%
16Minimum Array Length After Pair Removals
Array, Hash Table, Two Pointers, Binary Search, Greedy, Counting
Medium
75
0.3%
17Find the Maximum Length of a Good Subsequence I
Array, Hash Table, Dynamic Programming
Medium
75
0.3%
18String Transformation
Math, String, Dynamic Programming, String Matching
Hard
75
0.3%
19Find the Maximum Length of a Good Subsequence II
Array, Hash Table, Dynamic Programming
Hard
73
0.3%
20Number of Ways to Form a Target String Given a Dictionary
Array, String, Dynamic Programming
Hard
71
0.6%
21Merge k Sorted Lists
Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort
Hard
71
0.6%
22Course Schedule
Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort
Medium
68
0.5%
23Parallel Courses
Graph Theory, Topological Sort
Medium
68
0.6%
24Minimum Absolute Difference Between Two Values
Array, Enumeration
Easy
68
0.7%
25Design HashMap
Array, Hash Table, Linked List, Design, Hash Function
Easy
65
0.7%
26Max Area of Island
Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix
Medium
65
0.7%
27Two Sum
Array, Hash Table
Easy
65
0.6%
28Boundary of Binary Tree
Tree, Depth-First Search, Binary Tree
Medium
62
0.5%
29Basic Calculator
Math, String, Stack, Recursion
Hard
62
0.5%
30Maximum Number of Events That Can Be Attended
Array, Greedy, Sorting, Heap (Priority Queue)
Medium
62
0.4%
31Simplify Path
String, Stack
Medium
62
0.5%
32Top K Frequent Elements
Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect
Medium
62
0.7%
33Shortest Word Distance
Array, String
Easy
62
0.7%
34Merge Two Sorted Lists
Linked List, Recursion
Easy
58
0.7%
35Time Based Key-Value Store
Hash Table, String, Binary Search, Design
Medium
58
0.5%
36LRU Cache
Hash Table, Linked List, Design, Doubly-Linked List
Medium
58
0.5%
37Design Hit Counter
Array, Binary Search, Design, Queue, Data Stream
Medium
58
0.7%
38Task Scheduler
Array, Hash Table, Greedy, Sorting, Heap (Priority Queue), Counting
Medium
58
0.6%
39Copy List with Random Pointer
Hash Table, Linked List
Medium
58
0.6%
40Maximize Distance to Closest Person
Array
Medium
58
0.5%
41Design Add and Search Words Data Structure
String, Depth-First Search, Design, Trie
Medium
58
0.5%
42Remove Sub-Folders from the Filesystem
Array, String, Depth-First Search, Trie
Medium
58
0.8%
43Web Crawler Multithreaded
Depth-First Search, Breadth-First Search, Concurrency
Medium
58
0.5%
44Web Crawler
String, Depth-First Search, Breadth-First Search, Interactive
Medium
58
0.7%
45Regular Expression Matching
String, Dynamic Programming, Recursion
Hard
53
0.3%
46Insert Delete GetRandom O(1)
Array, Hash Table, Math, Design, Randomized
Medium
53
0.6%
47Min Stack
Stack, Design
Medium
53
0.6%
48Snapshot Array
Array, Hash Table, Binary Search, Design
Medium
53
0.4%
49Single Element in a Sorted Array
Array, Binary Search
Medium
53
0.6%
50Keys and Rooms
Depth-First Search, Breadth-First Search, Graph Theory
Medium
53
0.8%
51Maximum Number of Events That Can Be Attended II
Array, Binary Search, Dynamic Programming, Sorting
Hard
53
0.6%
52Design Log Storage System
Hash Table, String, Design, Ordered Set
Medium
53
0.6%
53Populating Next Right Pointers in Each Node
Linked List, Tree, Depth-First Search, Breadth-First Search, Binary Tree
Medium
46
0.7%
54Integer to English Words
Math, String, Recursion
Hard
46
0.4%
55Cheapest Flights Within K Stops
Dynamic Programming, Depth-First Search, Breadth-First Search, Graph Theory, Heap (Priority Queue), Shortest Path
Medium
46
0.4%
56Leaf-Similar Trees
Tree, Depth-First Search, Binary Tree
Easy
46
0.7%
57Random Pick with Weight
Array, Math, Binary Search, Prefix Sum, Randomized
Medium
46
0.5%
58Longest Univalue Path
Tree, Depth-First Search, Binary Tree
Medium
46
0.4%
59Roman to Integer
Hash Table, Math, String
Easy
46
0.7%
60Making A Large Island
Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix
Hard
46
0.6%
61Reverse Only Letters
Two Pointers, String
Easy
46
0.7%
62Most Stones Removed with Same Row or Column
Hash Table, Depth-First Search, Union-Find, Graph Theory
Medium
46
0.6%
63Rotting Oranges
Array, Breadth-First Search, Matrix
Medium
46
0.6%
64Parallel Courses II
Dynamic Programming, Bit Manipulation, Graph Theory, Bitmask
Hard
46
0.3%
65Campus Bikes
Array, Sorting, Heap (Priority Queue)
Medium
46
0.6%
66Graph Valid Tree
Depth-First Search, Breadth-First Search, Union-Find, Graph Theory
Medium
46
0.5%
67Design Circular Deque
Array, Linked List, Design, Queue
Medium
46
0.6%
68Most Frequent IDs
Array, Hash Table, Heap (Priority Queue), Ordered Set
Medium
46
0.4%
69Populating Next Right Pointers in Each Node II
Linked List, Tree, Depth-First Search, Breadth-First Search, Binary Tree
Medium
37
0.6%
70Basic Calculator II
Math, String, Stack
Medium
37
0.5%
71Meeting Rooms II
Array, Two Pointers, Greedy, Sorting, Heap (Priority Queue), Prefix Sum
Medium
37
0.5%
72Encode and Decode Strings
Array, String, Design
Medium
37
0.5%
73Maximum Number of Removable Characters
Array, Two Pointers, String, Binary Search
Medium
37
0.5%
74Count Nodes Equal to Average of Subtree
Tree, Depth-First Search, Binary Tree
Medium
37
0.9%
75Container With Most Water
Array, Two Pointers, Greedy
Medium
37
0.6%
76Find Median from Data Stream
Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream
Hard
37
0.5%
77Construct Binary Tree from Preorder and Inorder Traversal
Array, Hash Table, Divide and Conquer, Tree, Binary Tree
Medium
37
0.7%
78Most Profitable Path in a Tree
Array, Tree, Depth-First Search, Breadth-First Search, Graph Theory
Medium
37
0.7%
79N-Queens II
Backtracking
Hard
37
0.8%
80Valid Word Abbreviation
Two Pointers, String
Easy
37
0.4%
81Implement Trie (Prefix Tree)
Hash Table, String, Design, Trie
Medium
37
0.7%
82Walls and Gates
Array, Breadth-First Search, Matrix
Medium
37
0.6%
83Path With Minimum Effort
Array, Binary Search, Depth-First Search, Breadth-First Search, Union-Find, Heap (Priority Queue), Matrix
Medium
37
0.6%
84Remove K Digits
String, Stack, Greedy, Monotonic Stack
Medium
37
0.4%
85Best Time to Buy and Sell Stock
Array, Dynamic Programming
Easy
37
0.6%
86Non-overlapping Intervals
Array, Dynamic Programming, Greedy, Sorting
Medium
37
0.6%
87Boats to Save People
Array, Two Pointers, Greedy, Sorting
Medium
37
0.6%
88Word Search
Array, String, Backtracking, Depth-First Search, Matrix
Medium
37
0.5%
89My Calendar I
Array, Binary Search, Design, Segment Tree, Ordered Set
Medium
37
0.6%
90Alert Using Same Key-Card Three or More Times in a One Hour Period
Array, Hash Table, String, Sorting
Medium
37
0.5%
91Design Circular Queue
Array, Linked List, Design, Queue
Medium
37
0.5%
92Design File System
Hash Table, String, Design, Trie
Medium
37
0.7%
93Paint Fence
Dynamic Programming
Medium
37
0.5%
94Add Two Numbers
Linked List, Math, Recursion
Medium
37
0.5%
95Jump Game II
Array, Dynamic Programming, Greedy
Medium
37
0.4%
96The Maze
Array, Depth-First Search, Breadth-First Search, Matrix
Medium
37
0.6%
97Height of Binary Tree After Subtree Removal Queries
Array, Tree, Depth-First Search, Breadth-First Search, Binary Tree
Hard
37
0.5%
98Design Browser History
Array, Linked List, Stack, Design, Doubly-Linked List, Data Stream
Medium
37
0.8%
99Number of Islands
Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix
Medium
37
0.6%
100Possible Bipartition
Depth-First Search, Breadth-First Search, Union-Find, Graph Theory
Medium
37
0.5%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.