0 day streak

Grab coding interview questions

ProductFintech Global Machine coding / LLD

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Top K Frequent ElementsComposite comparator Medium Heaps Google, Amazon, Microsoft +53 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +68 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +88 Solve
Copy List with Random PointerMiscellaneous Medium Linked List Google, Amazon, Microsoft +23 Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Amazon, Microsoft +55 Solve
Accounts MergeConnected Components Medium Graphs Stripe, Pinterest, Palantir +12 Solve
Minimum Cost For Tickets1D DP Medium Dynamic Programming Turing, Roku, EPAM Systems +3 Solve
Subarray Sum Equals KPrefix Sum Strategy Medium Arrays & Hashing Google, Amazon, Microsoft +41 Solve
Simplify PathStack Basics Medium Stack Meta, Snowflake, TikTok (ByteDance) +11 Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Amazon, Microsoft, Apple +79 Solve
Invert Binary TreeRecursion Easy Trees & BST Amazon, Meta, Palo Alto Networks +10 Solve
House RobberAlternate Selection / Pick / Not pick Medium Dynamic Programming Google, Microsoft, Airbnb +43 Solve
Daily TemperaturesMonotonic Stack Medium Monotonic Stack Amazon, TikTok (ByteDance), eBay +20 Solve
Valid AnagramHashing Easy Arrays & Hashing Netflix, Databricks, Bloomberg +42 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Jump Game IIGreedy Medium Arrays & Hashing Google, DoorDash, Nutanix +25 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +82 Solve
Convert to Base -2Basics Medium Bit Manipulation Airbnb Solve
First Missing PositiveIn-place Transformations Hard Arrays & Hashing Amazon, Microsoft, Netflix +34 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Add Two NumbersDummy Node Pattern Medium Linked List Amazon, Microsoft, Meta +33 Solve
Palindrome Linked ListFront Middle Back Pointer Easy Linked List Meta, Spotify, Epic Games +14 Solve
Product of Array Except SelfRight to Left Traversal Medium Arrays & Hashing Amazon, Microsoft, Meta +37 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Amazon, Meta, Apple +51 Solve
Next Greater Element IIIRight to Left Traversal Medium Arrays & Hashing DoorDash, Akamai, Morgan Stanley +2 Solve
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +59 Solve
Find Median from Data StreamAdvanced Hard Heaps Google, Amazon, Apple +47 Solve
Insert Delete GetRandom O(1)Hash Map + Array Medium Design Data Structures Google, Amazon, Apple +50 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Meeting Rooms IILine Sweep Medium Intervals Google, Amazon, Meta +50 Solve
Validate Binary Search TreePostorder + Multiple Return Values Medium Trees & BST Google, Microsoft, Meta +35 Solve
All Nodes Distance K in Binary TreeChild + Ancestor Handling Medium Trees & BST Amazon, Meta, Apple +14 Solve
3SumTwo Sum Medium Arrays & Hashing Google, Amazon, Microsoft +68 Solve
Diagonal TraverseMatrix Traversal Medium Arrays & Hashing Microsoft, Meta, Airbnb +8 Solve
Partition LabelsBasics Medium Intervals Barclays, InMobi, Jupiter Solve
Vertical Order Traversal of a Binary TreeViews Hard Trees & BST Meta, Apple, Uber +15 Solve
Custom Sort StringHashing Medium Arrays & Hashing Microsoft, Meta, Epic Games +1 Solve
Frog Jump1D DP Hard Dynamic Programming Snap, Zillow, Squarepoint Capital +3 Solve
Also reported, being added to AlgoRung (9)

Paint House III · Repeated Substring Pattern · Number of Steps to Reduce a Number in Binary Representation to One · Adding Two Negabinary Numbers · Reconstruct a 2-Row Binary Matrix · Minimum Number of Food Buckets to Feed the Hamsters · Partition Array into Disjoint Intervals · String Without AAA or BBB · Word Abbreviation

Questions people ask

What coding questions does Grab ask most?

Top K Frequent Elements, Longest Palindromic Substring, Trapping Rain Water, Copy List with Random Pointer, Coin Change, Accounts Merge, Minimum Cost For Tickets, Subarray Sum Equals K.

Which topics come up in Grab coding rounds?

arrays, strings, dynamic programming, stacks, linked list, graphs.

How hard are Grab coding questions?

Of the reported questions, 6 are easy, 27 medium and 6 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.