Rubrik Coding Interview Questions

37 DSA problems tagged as asked in Rubrik coding interviews and online assessments. Below are all 37: 2 easy, 22 medium and 13 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Rubrik DSA problems, easiest first

  1. Distribute Candies Among Children I (Easy)
  2. Existence of a Substring in a String and Its Reverse (Easy)
  3. 4Sum (Medium)
  4. Alice and Bob Playing Flower Game (Medium)
  5. Candy Crush (Medium)
  6. Count Lattice Points Inside a Circle (Medium)
  7. Design Add and Search Words Data Structure (Medium)
  8. Design Bounded Blocking Queue (Medium)
  9. Design Circular Queue (Medium)
  10. Design Memory Allocator (Medium)
  11. Distribute Candies Among Children II (Medium)
  12. Edit Distance (Medium)
  13. Find Longest Special Substring That Occurs Thrice II (Medium)
  14. Find X Value of Array I (Medium)
  15. Insert Delete GetRandom O(1) (Medium)
  16. LRU Cache (Medium)
  17. Maximum Points After Enemy Battles (Medium)
  18. Next Permutation (Medium)
  19. Random Pick with Weight (Medium)
  20. Snapshot Array (Medium)
  21. Task Scheduler (Medium)
  22. Task Scheduler II (Medium)
  23. Web Crawler (Medium)
  24. Web Crawler Multithreaded (Medium)
  25. Cherry Pickup II (Hard)
  26. Design a Text Editor (Hard)
  27. Distribute Candies Among Children III (Hard)
  28. Find the Sum of Subsequence Powers (Hard)
  29. Find X Value of Array II (Hard)
  30. Manhattan Distances of All Arrangements of Pieces (Hard)
  31. Maximize Subarray Sum After Removing All Occurrences of One Element (Hard)
  32. Minimum Number of Moves to Make Palindrome (Hard)
  33. Prefix and Suffix Search (Hard)
  34. Remove Invalid Parentheses (Hard)
  35. Scramble String (Hard)
  36. Special Binary String (Hard)
  37. Stamping the Grid (Hard)

Prepare for the rest of the Rubrik process

Other companies