grindmapcompany-wise LeetCode
All companies

Rubrik LeetCode Questions

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