Rubrik Coding Interview Questions: 20 Tagged Problems
20 coding problems tagged Rubrik — 1 easy · 11 medium · 8 hard — with solutions in 13 languages. Plus a 2-week study plan by topic.
- Problems: 20
- By difficulty: 1 easy · 11 medium · 8 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
20 problems the CodeKairo catalogue tags as commonly asked in Rubrik's coding rounds — 1 easy, 11 medium and 8 hard — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (10), Strings (8) and Hash Table (6). The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Rubrik, which CodeKairo is not affiliated with.
Rubrik study plan by topic
All 20 problems tagged Rubrik over 2 weeks, about 13 h 25 min of solving, grouped by technique in the order they build on each other — Hash Table, Math, Two Pointers and Sliding Window and 10 more.
Week 1: Hash Table, Math, Two Pointers +5
12 problems on Hash Table, Math, Two Pointers, Sliding Window, Binary Search, Matrix, Simulation and Greedy, easiest first within each topic.
- Existence of a Substring in a String and Its Reverse Easy
- Fraction to Recurring Decimal Medium
- 3Sum Medium
- Next Permutation Medium
- 4Sum Medium
- Minimum Number of Moves to Make Palindrome Hard
- Take K of Each Character From Left and Right Hard
- Maximum Value at a Given Index in a Bounded Array Medium
- Maximum Number of Groups With Increasing Length Hard
- Minimum Path Sum Medium
- Task Scheduler II Medium
- Minimum Time to Complete All Tasks Hard
Week 2: Divide and Conquer, Heap, Backtracking +3
8 problems on Divide and Conquer, Heap, Backtracking, Union Find, Dynamic Programming and Geometry, easiest first within each topic.
- Special Binary String Hard
- Task Scheduler Medium
- Remove Invalid Parentheses Hard
- Smallest String With Swaps Medium
- Paint Fence Medium
- Best Time to Buy and Sell Stock III Hard
- Scramble String Hard
- Count Lattice Points Inside a Circle Medium
All problems tagged Rubrik
Easy (1)
- Existence of a Substring in a String and Its Reverse String, Hash Table
Medium (11)
- Count Lattice Points Inside a Circle Array, Hash Table, Math
- Fraction to Recurring Decimal Hash Table, Math, String
- Task Scheduler II Array, Hash Table, Simulation
- Maximum Value at a Given Index in a Bounded Array Binary Search, Greedy, Math
- 4Sum Array, Two Pointers, Sorting
- Smallest String With Swaps Union Find, Hash Table, String
- Paint Fence Dynamic Programming
- Minimum Path Sum Array, Dynamic Programming, Matrix
- Next Permutation Array, Two Pointers
- 3Sum Array, Two Pointers, Sorting
- Task Scheduler Array, Greedy, Heap
Hard (8)
- Remove Invalid Parentheses String, Backtracking, Breadth-First Search
- Special Binary String String, Recursion, Divide and Conquer
- Maximum Number of Groups With Increasing Length Array, Greedy, Sorting
- Scramble String String, Dynamic Programming
- Minimum Time to Complete All Tasks Array, Greedy, Sorting
- Take K of Each Character From Left and Right String, Hash Table, Sliding Window
- Minimum Number of Moves to Make Palindrome String, Two Pointers, Greedy
- Best Time to Buy and Sell Stock III Array, Dynamic Programming
Topics Rubrik asks most
- Arrays 10 problems
- Strings 8 problems
- Hash Table 6 problems
- Greedy 6 problems
- Sorting 5 problems
- Two Pointers 4 problems
- Dynamic Programming 4 problems
- Math 3 problems
- Binary Search 2 problems
- Counting 1 problem
- Sliding Window 1 problem
- Prefix Sum 1 problem