grindmapcompany-wise LeetCode
All companies

Yahoo LeetCode Questions

34 questions all-time · 11 easy · 20 medium · 3 hard
# Problem Difficulty Frequency Acceptance
1LRU Cache
Hash Table, Linked List, Design, Doubly-Linked List
Medium
100
0.5%
2Two Sum
Array, Hash Table
Easy
98
0.6%
3Maximum Depth of Binary Tree
Tree, Depth-First Search, Breadth-First Search, Binary Tree
Easy
98
0.8%
4Reverse Linked List
Linked List, Recursion
Easy
98
0.8%
5Contains Duplicate
Array, Hash Table, Sorting
Easy
98
0.6%
6Serialize and Deserialize Binary Tree
String, Tree, Depth-First Search, Breadth-First Search, Design, Binary Tree
Hard
98
0.6%
7Largest Palindrome Product
Math, Enumeration
Hard
98
0.4%
8Median of Two Sorted Arrays
Array, Binary Search, Divide and Conquer
Hard
95
0.5%
9Roman to Integer
Hash Table, Math, String
Easy
95
0.7%
10Word Break
Array, Hash Table, String, Dynamic Programming, Trie, Memoization
Medium
95
0.5%
11Linked List Cycle
Hash Table, Linked List, Two Pointers
Easy
95
0.5%
12Peeking Iterator
Array, Design, Iterator
Medium
95
0.6%
13Non-decreasing Subsequences
Array, Hash Table, Backtracking, Bit Manipulation
Medium
95
0.6%
14Maximum Distance in Arrays
Array, Greedy
Medium
95
0.5%
15Binary Number with Alternating Bits
Bit Manipulation
Easy
95
0.7%
16Matrix Cells in Distance Order
Array, Math, Geometry, Sorting, Matrix
Easy
95
0.7%
17Top K Frequent Elements
Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect
Medium
78
0.7%
18Combination Sum
Array, Backtracking
Medium
65
0.8%
19Palindrome Number
Math
Easy
55
0.6%
20Longest Common Prefix
Array, String, Trie
Easy
55
0.5%
21Valid Parentheses
String, Stack
Easy
55
0.4%
22Search in Rotated Sorted Array
Array, Binary Search
Medium
55
0.5%
23Spiral Matrix
Array, Matrix, Simulation
Medium
55
0.6%
24Validate Binary Search Tree
Tree, Depth-First Search, Binary Search Tree, Binary Tree
Medium
55
0.4%
25Decode String
String, Stack, Recursion
Medium
55
0.6%
26Longest Repeating Character Replacement
Hash Table, String, Sliding Window
Medium
55
0.6%
27Subarray Sum Equals K
Array, Hash Table, Prefix Sum
Medium
55
0.5%
28Shortest Path in Binary Matrix
Array, Breadth-First Search, Matrix
Medium
55
0.5%
29Restore IP Addresses
String, Backtracking
Medium
55
0.6%
30Evaluate Division
Array, String, Depth-First Search, Breadth-First Search, Union-Find, Graph Theory, Shortest Path
Medium
55
0.6%
31Flatten Nested List Iterator
Stack, Tree, Depth-First Search, Design, Queue, Iterator
Medium
55
0.7%
32Find Peak Element
Array, Binary Search
Medium
55
0.5%
33Word Search
Array, String, Backtracking, Depth-First Search, Matrix
Medium
55
0.5%
34Meeting Rooms II
Array, Two Pointers, Greedy, Sorting, Heap (Priority Queue), Prefix Sum
Medium
55
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.