Yelp LeetCode Questions
27 questions all-time · 7 easy · 15 medium · 5 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Destination City Array, Hash Table, String | Easy | 100 | 0.8% |
| 2 | Filter Restaurants by Vegan-Friendly, Price and Distance Array, Sorting | Medium | 98 | 0.6% |
| 3 | Two Sum Array, Hash Table | Easy | 95 | 0.6% |
| 4 | Longest Substring Without Repeating Characters Hash Table, String, Sliding Window | Medium | 95 | 0.4% |
| 5 | Longest Common Prefix Array, String, Trie | Easy | 95 | 0.5% |
| 6 | Group Anagrams Array, Hash Table, String, Sorting | Medium | 95 | 0.7% |
| 7 | Merge Intervals Array, Sorting | Medium | 95 | 0.5% |
| 8 | Word Ladder II Hash Table, String, Backtracking, Breadth-First Search | Hard | 95 | 0.3% |
| 9 | Word Ladder Hash Table, String, Breadth-First Search | Hard | 95 | 0.5% |
| 10 | Reverse Words in a String Two Pointers, String | Medium | 95 | 0.6% |
| 11 | Active Businesses Database | Medium | 95 | 0.7% |
| 12 | Reverse Linked List Linked List, Recursion | Easy | 95 | 0.8% |
| 13 | Course Schedule Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort | Medium | 95 | 0.5% |
| 14 | The Skyline Problem Array, Divide and Conquer, Binary Indexed Tree, Segment Tree, Sweep Line, Sorting, Heap (Priority Queue), Ordered Set | Hard | 95 | 0.5% |
| 15 | Valid Anagram Hash Table, String, Sorting | Easy | 95 | 0.7% |
| 16 | Top K Frequent Elements Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect | Medium | 95 | 0.7% |
| 17 | Insert Delete GetRandom O(1) Array, Hash Table, Math, Design, Randomized | Medium | 95 | 0.6% |
| 18 | Insert Delete GetRandom O(1) - Duplicates allowed Array, Hash Table, Math, Design, Randomized | Hard | 95 | 0.4% |
| 19 | Decode String String, Stack, Recursion | Medium | 95 | 0.6% |
| 20 | String Compression Two Pointers, String | Medium | 95 | 0.6% |
| 21 | Check If a Word Occurs As a Prefix of Any Word in a Sentence Two Pointers, String, String Matching | Easy | 95 | 0.7% |
| 22 | Find the Closest Palindrome Math, String | Hard | 95 | 0.3% |
| 23 | Minimum Index Sum of Two Lists Array, Hash Table, String | Easy | 95 | 0.6% |
| 24 | Top K Frequent Words Array, Hash Table, String, Trie, Sorting, Heap (Priority Queue), Bucket Sort, Counting | Medium | 95 | 0.6% |
| 25 | Letter Case Permutation String, Backtracking, Bit Manipulation | Medium | 95 | 0.8% |
| 26 | Remove Colored Pieces if Both Neighbors are the Same Color Math, String, Greedy, Game Theory | Medium | 95 | 0.6% |
| 27 | Shortest and Lexicographically Smallest Beautiful String String, Sliding Window | Medium | 55 | 0.4% |
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.