Pocket Gems LeetCode Questions
15 questions all-time · 1 easy · 10 medium · 4 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Find the Index of the First Occurrence in a String Two Pointers, String, String Matching | Easy | 100 | 45.0% |
| 2 | Sort Colors Array, Two Pointers, Sorting | Medium | 100 | 67.6% |
| 3 | Non-negative Integers without Consecutive Ones Dynamic Programming | Hard | 100 | 40.3% |
| 4 | Clone Graph Hash Table, Depth-First Search, Breadth-First Search, Graph | Medium | 100 | 62.4% |
| 5 | Word Break Array, Hash Table, String, Dynamic Programming, Trie, Memoization | Medium | 100 | 48.3% |
| 6 | Top K Frequent Words Array, Hash Table, String, Trie, Sorting, Heap (Priority Queue), Bucket Sort, Counting | Medium | 100 | 59.3% |
| 7 | Shortest Palindrome String, Rolling Hash, String Matching, Hash Function | Hard | 100 | 40.7% |
| 8 | Kth Largest Element in an Array Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect | Medium | 100 | 68.0% |
| 9 | Alien Dictionary Array, String, Depth-First Search, Breadth-First Search, Graph, Topological Sort | Hard | 100 | 36.7% |
| 10 | Basic Calculator III Math, String, Stack, Recursion | Hard | 100 | 52.5% |
| 11 | Inorder Successor in BST Tree, Depth-First Search, Binary Search Tree, Binary Tree | Medium | 100 | 50.7% |
| 12 | Top K Frequent Elements Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect | Medium | 100 | 64.6% |
| 13 | Insert Delete GetRandom O(1) Array, Hash Table, Math, Design, Randomized | Medium | 100 | 55.0% |
| 14 | Longest Repeating Character Replacement Hash Table, String, Sliding Window | Medium | 100 | 57.2% |
| 15 | Find All Duplicates in an Array Array, Hash Table | Medium | 100 | 76.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.