Rappi Coding Interview Questions
25 Rappi coding interview problems with full optimal solutions — 8 easy, 12 medium, 5 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Rappi interviewer values, and a FAQ section.
Showing 12 problems of 25
- #9mediumfoundational
9. Number of Islands
Count connected '1' clusters in a grid — Rappi frames this as counting connected delivery-demand hotspots on a city heatmap to allocate courier supply.
- #10mediumfoundational
10. Course Schedule
Determine if all courses can be finished given prerequisite pairs — Rappi frames this as validating that a multi-stop delivery route has no circular pickup-then-drop dependency.
- #11mediumfoundational
11. Kth Largest Element in an Array
Find the kth-largest element of an unsorted array — Rappi frames this as picking the kth-fastest courier from a city-wide ETA leaderboard for batched dispatch.
- #12mediumfoundational
12. Coin Change
Compute the fewest coins needed to make a target amount — Rappi frames this as composing the minimum number of stacked courier surcharges to hit a promised payout.
- #13mediumfoundational
13. Top K Frequent Elements
Return the k most frequent elements in an array — Rappi frames this as ranking the top-k busiest pickup zones from a stream of dispatch events.
- #14mediumfoundational
14. Find All Anagrams in a String
Return the start indices of all anagrams of p in s — Rappi frames this as scanning a stream of dispatch log lines for any permutation of a known fraud-signature substring.
- #15mediumfoundational
15. Subarray Sum Equals K
Count contiguous subarrays summing to k — Rappi frames this as counting time-windows where cumulative delivery revenue exactly matches a guaranteed payout.
- #16mediumfoundational
16. Daily Temperatures
For each day, find how many days until a warmer temperature — Rappi frames this as how many dispatch ticks until a courier sees a higher-priority order than the current one.
- #17mediumfoundational
17. Rotting Oranges
Compute the minimum minutes until every fresh orange is rotten given grid spread rules — Rappi frames this as the minimum dispatch ticks until a supply-shortage hotspot propagates across an entire delivery zone.
- #18mediumfoundational
18. Max Consecutive Ones III
Find the longest substring of ones if you can flip at most k zeros — Rappi frames this as finding the longest continuous on-time delivery streak per courier when you can forgive up to k delays.
- #19mediumfoundational
19. Design Underground System
Track passengers checking in and out of stations and report average travel time between any two stations — Rappi frames this as tracking courier check-in/check-out at pickup and drop-off zones to compute average leg-time for ETA models.
- #20mediumfoundational
20. Number of Zero-Filled Subarrays
Count contiguous subarrays consisting entirely of zeros — Rappi frames this as counting idle windows in a courier's status stream to find under-utilization.