Grab Coding Interview Questions
25 Grab coding interview problems with full optimal solutions — 13 easy, 9 medium, 3 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Grab interviewer values, and a FAQ section.
Showing 9 problems of 25
- #14mediumfoundational
14. Add Two Numbers
Add two linked-list digits with carry — Grab uses this to test pointer + arithmetic handling in one shot.
- #15mediumfoundational
15. Longest Substring Without Repeating Characters
Find the longest substring without repeats — Grab uses this as a sliding-window fluency check.
- #16mediumfoundational
16. Container With Most Water
Pick two lines forming the largest water container — Grab uses this as a two-pointer optimization test.
- #17mediumfoundational
17. 3Sum
Find all unique triplets that sum to zero — Grab uses this as a sort-plus-two-pointer fluency check.
- #18mediumfoundational
18. Generate Parentheses
Generate all well-formed parenthesis strings of length 2n — Grab uses this as a backtracking fluency check.
- #19mediumfoundational
19. Permutations
Return all permutations of a distinct-element array — Grab uses this as a backtracking and state-tracking check.
- #20mediumfoundational
20. Group Anagrams
Bucket strings that are anagrams of one another — Grab uses this to test hash-key selection.
- #21mediumfoundational
21. Merge Intervals
Merge overlapping intervals — Grab uses this as a sort-plus-sweep classic for scheduling problems.
- #22mediumfoundational
22. Word Break
Decide whether a string can be segmented into dictionary words — Grab uses this as a DP-on-strings warm-up.