Roblox LeetCode Questions
56 questions all-time · 8 easy · 35 medium · 13 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Candy Crush Array, Two Pointers, Matrix, Simulation | Medium | 100 | 0.8% |
| 2 | Reorganize String Hash Table, String, Greedy, Sorting, Heap (Priority Queue), Counting | Medium | 95 | 0.6% |
| 3 | Number of Ways to Wear Different Hats to Each Other Array, Dynamic Programming, Bit Manipulation, Bitmask | Hard | 93 | 0.5% |
| 4 | Text Justification Array, String, Simulation | Hard | 89 | 0.5% |
| 5 | Task Scheduler Array, Hash Table, Greedy, Sorting, Heap (Priority Queue), Counting | Medium | 86 | 0.6% |
| 6 | Maximize Distance to Closest Person Array | Medium | 86 | 0.5% |
| 7 | Course Schedule II Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort | Medium | 83 | 0.6% |
| 8 | Design Hit Counter Array, Binary Search, Design, Queue, Data Stream | Medium | 77 | 0.7% |
| 9 | Count Number of Nice Subarrays Array, Hash Table, Math, Sliding Window, Prefix Sum | Medium | 73 | 0.8% |
| 10 | Group the People Given the Group Size They Belong To Array, Hash Table, Greedy | Medium | 73 | 0.9% |
| 11 | Integer to English Words Math, String, Recursion | Hard | 73 | 0.4% |
| 12 | Design Search Autocomplete System String, Depth-First Search, Design, Trie, Sorting, Heap (Priority Queue), Data Stream | Hard | 73 | 0.5% |
| 13 | Rotate Image Array, Math, Matrix | Medium | 71 | 0.8% |
| 14 | Magnetic Force Between Two Balls Array, Binary Search, Sorting | Medium | 71 | 0.7% |
| 15 | Subdomain Visit Count Array, Hash Table, String, Counting | Medium | 71 | 0.8% |
| 16 | Convert Binary Number in a Linked List to Integer Linked List, Math | Easy | 71 | 0.8% |
| 17 | Students and Examinations Database | Easy | 71 | 0.6% |
| 18 | Maximum Number of Occurrences of a Substring Hash Table, String, Sliding Window | Medium | 71 | 0.5% |
| 19 | Number of Trusted Contacts of a Customer Database | Medium | 71 | 0.7% |
| 20 | Minimum Operations to Write the Letter Y on a Grid Array, Hash Table, Matrix, Counting | Medium | 67 | 0.6% |
| 21 | Valid Parentheses String, Stack | Easy | 64 | 0.4% |
| 22 | Implement Trie (Prefix Tree) Hash Table, String, Design, Trie | Medium | 64 | 0.7% |
| 23 | Minimum Absolute Difference Between Elements With Constraint Array, Binary Search, Ordered Set | Medium | 64 | 0.4% |
| 24 | Number of Black Blocks Array, Hash Table, Enumeration | Medium | 64 | 0.4% |
| 25 | Logger Rate Limiter Hash Table, Design, Data Stream | Easy | 64 | 0.8% |
| 26 | Find the Length of the Longest Common Prefix Array, Hash Table, String, Trie | Medium | 61 | 0.6% |
| 27 | Course Schedule Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort | Medium | 61 | 0.5% |
| 28 | Brightest Position on Street Array, Sorting, Prefix Sum, Ordered Set | Medium | 57 | 0.6% |
| 29 | Block Placement Queries Array, Binary Search, Binary Indexed Tree, Segment Tree, Ordered Set | Hard | 57 | 0.4% |
| 30 | Subarrays with K Different Integers Array, Hash Table, Sliding Window, Counting | Hard | 57 | 0.7% |
| 31 | Number of Adjacent Elements With the Same Color Array | Medium | 57 | 0.6% |
| 32 | Rotating the Box Array, Two Pointers, Matrix | Medium | 57 | 0.8% |
| 33 | Merge Intervals Array, Sorting | Medium | 52 | 0.5% |
| 34 | Number of Flowers in Full Bloom Array, Hash Table, Binary Search, Sorting, Prefix Sum, Ordered Set | Hard | 52 | 0.6% |
| 35 | Largest Rectangle in Histogram Array, Stack, Monotonic Stack | Hard | 52 | 0.5% |
| 36 | Spiral Matrix Array, Matrix, Simulation | Medium | 52 | 0.6% |
| 37 | Two Sum Array, Hash Table | Easy | 52 | 0.6% |
| 38 | Trapping Rain Water Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack | Hard | 52 | 0.7% |
| 39 | Number of Recent Calls Design, Queue, Data Stream | Easy | 52 | 0.8% |
| 40 | Longest Common Prefix Array, String, Trie | Easy | 46 | 0.5% |
| 41 | Design Browser History Array, Linked List, Stack, Design, Doubly-Linked List, Data Stream | Medium | 46 | 0.8% |
| 42 | Count the Number of Good Subarrays Array, Hash Table, Sliding Window | Medium | 46 | 0.7% |
| 43 | Length of Longest V-Shaped Diagonal Segment Array, Dynamic Programming, Memoization, Matrix | Hard | 46 | 0.6% |
| 44 | Minimum Number of Frogs Croaking String, Counting | Medium | 38 | 0.5% |
| 45 | Employee Free Time Array, Sweep Line, Sorting, Heap (Priority Queue) | Hard | 38 | 0.7% |
| 46 | Rotting Oranges Array, Breadth-First Search, Matrix | Medium | 38 | 0.6% |
| 47 | Longest Substring Without Repeating Characters Hash Table, String, Sliding Window | Medium | 38 | 0.4% |
| 48 | Image Smoother Array, Matrix | Easy | 38 | 0.7% |
| 49 | Longest Consecutive Sequence Array, Hash Table, Union-Find | Medium | 38 | 0.5% |
| 50 | Basic Calculator IV Hash Table, Math, String, Stack, Recursion | Hard | 38 | 0.5% |
| 51 | Restore the Array From Adjacent Pairs Array, Hash Table, Depth-First Search | Medium | 38 | 0.8% |
| 52 | Count Nice Pairs in an Array Array, Hash Table, Math, Counting | Medium | 38 | 0.5% |
| 53 | Insert Delete GetRandom O(1) Array, Hash Table, Math, Design, Randomized | Medium | 38 | 0.6% |
| 54 | Random Pick with Weight Array, Math, Binary Search, Prefix Sum, Randomized | Medium | 38 | 0.5% |
| 55 | Design Memory Allocator Array, Hash Table, Design, Simulation | Medium | 38 | 0.5% |
| 56 | Sliding Window Maximum Array, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue | Hard | 38 | 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.