Rubrik LeetCode Questions
35 questions all-time · 2 easy · 22 medium · 11 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Maximum Points After Enemy Battles Array, Greedy | Medium | 100 | 0.3% |
| 2 | Maximize Subarray Sum After Removing All Occurrences of One Element Array, Hash Table, Divide and Conquer, Dynamic Programming, Segment Tree, Prefix Sum | Hard | 71 | 0.2% |
| 3 | Manhattan Distances of All Arrangements of Pieces Math, Combinatorics | Hard | 71 | 0.4% |
| 4 | Count Lattice Points Inside a Circle Array, Hash Table, Math, Geometry, Enumeration | Medium | 70 | 0.6% |
| 5 | Stamping the Grid Array, Greedy, Matrix, Prefix Sum | Hard | 65 | 0.4% |
| 6 | Alice and Bob Playing Flower Game Math | Medium | 62 | 0.6% |
| 7 | Candy Crush Array, Two Pointers, Matrix, Simulation | Medium | 62 | 0.8% |
| 8 | Distribute Candies Among Children I Math, Combinatorics, Enumeration | Easy | 61 | 0.8% |
| 9 | Distribute Candies Among Children II Math, Combinatorics, Enumeration | Medium | 61 | 0.6% |
| 10 | Distribute Candies Among Children III Math, Combinatorics | Hard | 61 | 0.6% |
| 11 | Find the Sum of Subsequence Powers Array, Dynamic Programming, Sorting | Hard | 61 | 0.3% |
| 12 | Existence of a Substring in a String and Its Reverse Hash Table, String | Easy | 61 | 0.7% |
| 13 | Random Pick with Weight Array, Math, Binary Search, Prefix Sum, Randomized | Medium | 61 | 0.5% |
| 14 | Find Longest Special Substring That Occurs Thrice II Hash Table, String, Binary Search, Sliding Window, Counting | Medium | 61 | 0.4% |
| 15 | Find X Value of Array II Array, Math, Segment Tree | Hard | 61 | 0.3% |
| 16 | Find X Value of Array I Array, Math, Dynamic Programming | Medium | 61 | 0.4% |
| 17 | LRU Cache Hash Table, Linked List, Design, Doubly-Linked List | Medium | 49 | 0.5% |
| 18 | Task Scheduler Array, Hash Table, Greedy, Sorting, Heap (Priority Queue), Counting | Medium | 45 | 0.6% |
| 19 | Web Crawler Multithreaded Depth-First Search, Breadth-First Search, Concurrency | Medium | 45 | 0.5% |
| 20 | Remove Invalid Parentheses String, Backtracking, Breadth-First Search | Hard | 45 | 0.5% |
| 21 | Snapshot Array Array, Hash Table, Binary Search, Design | Medium | 45 | 0.4% |
| 22 | Minimum Number of Moves to Make Palindrome Two Pointers, String, Greedy, Binary Indexed Tree | Hard | 45 | 0.5% |
| 23 | Next Permutation Array, Two Pointers | Medium | 40 | 0.5% |
| 24 | Web Crawler String, Depth-First Search, Breadth-First Search, Interactive | Medium | 40 | 0.7% |
| 25 | Task Scheduler II Array, Hash Table, Simulation | Medium | 40 | 0.5% |
| 26 | 4Sum Array, Two Pointers, Sorting | Medium | 34 | 0.4% |
| 27 | Scramble String String, Dynamic Programming | Hard | 34 | 0.4% |
| 28 | Insert Delete GetRandom O(1) Array, Hash Table, Math, Design, Randomized | Medium | 34 | 0.6% |
| 29 | Cherry Pickup II Array, Dynamic Programming, Matrix | Hard | 34 | 0.7% |
| 30 | Design Memory Allocator Array, Hash Table, Design, Simulation | Medium | 34 | 0.5% |
| 31 | Design Circular Queue Array, Linked List, Design, Queue | Medium | 34 | 0.5% |
| 32 | Special Binary String String, Divide and Conquer, Sorting | Hard | 34 | 0.8% |
| 33 | Count Zero Request Servers Array, Hash Table, Sliding Window, Sorting | Medium | 34 | 0.4% |
| 34 | Paint Fence Dynamic Programming | Medium | 34 | 0.5% |
| 35 | Smallest String With Swaps Array, Hash Table, String, Depth-First Search, Breadth-First Search, Union-Find, Sorting | Medium | 34 | 0.6% |
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.