0 day streak

Ola coding interview questions

Product India 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
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +49 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +50 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +38 Solve
Add Two NumbersDummy Node Pattern Medium Linked List Amazon, Microsoft, Meta +12 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +46 Solve
Validate Binary Search TreePostorder + Multiple Return Values Medium Trees & BST Google, Microsoft, Meta +6 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +31 Solve
Binary Tree Maximum Path SumPostorder + Multiple Return Values Hard Trees & BST Google, Amazon, Meta +7 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +22 Solve
Climbing Stairs1D DP Easy Dynamic Programming Bloomberg, Intuit, Qualcomm +8 Solve
House RobberAlternate Selection / Pick / Not pick Medium Dynamic Programming Airbnb, Nvidia, Databricks +13 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +41 Solve
Decode StringStack Basics Medium Stack Google, Amazon, Microsoft +8 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Microsoft, Apple +31 Solve
Alien DictionaryTopological Sort Hard Graphs Google, Amazon, Meta +5 Solve
3SumTwo Sum Medium Arrays & Hashing Google, Microsoft, Meta +31 Solve
Find Pivot IndexPrefix Sum Strategy Easy Arrays & Hashing Tesla, IBM, Infosys +1 Solve
Find Minimum in Rotated Sorted ArrayRotated Array Medium Binary Search Microsoft, Paytm, Freshworks +1 Solve
Excel Sheet Column TitleMath / Number Theory Easy Arrays & Hashing Zoho Solve
First Missing PositiveIn-place Transformations Hard Arrays & Hashing Amazon, Microsoft, Netflix +15 Solve
Delete Node in a Linked ListMiscellaneous Medium Linked List PayPal, Paytm, Freshworks Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +38 Solve
All Nodes Distance K in Binary TreeChild + Ancestor Handling Medium Trees & BST Amazon, Meta, Apple +6 Solve
Unique Paths2D DP Medium Dynamic Programming Razorpay, Paytm, Airtel +1 Solve
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +13 Solve
Spiral MatrixMatrix Traversal Medium Arrays & Hashing Microsoft, Apple, Databricks +15 Solve
Subsets (2 choices per element)Pick / Not-Pick Medium Recursion & Backtracking Bloomberg Solve
PermutationsPermutations Medium Recursion & Backtracking Google, Apple, LinkedIn +5 Solve
Permutations IIPermutations Medium Recursion & Backtracking MakeMyTrip Solve
Next PermutationRight to Left Traversal Medium Arrays & Hashing Google, Amazon, Meta +15 Solve
Product of Array Except SelfRight to Left Traversal Medium Arrays & Hashing Microsoft, Meta, Apple +13 Solve
Detect Cycles in 2D GridCycle Detection Medium Graphs Nutanix Solve
Amount of Time for Binary Tree to Be InfectedChild + Ancestor Handling Medium Trees & BST Amazon, DoorDash, ServiceNow +2 Solve
Minimum Cost to Connect SticksTop K / Kth Largest / Smallest Medium Heaps Google, JPMorgan Chase, Zepto +3 Solve
Partition Equal Subset SumKnapsack Medium Dynamic Programming Google, Walmart Global Tech, Dream11 Solve
Pascal's Triangle II1D DP Easy Dynamic Programming Airtel Solve
Top K Frequent WordsTop K / Kth Largest / Smallest Medium Heaps Amazon, Goldman Sachs, CRED Solve
Reverse Words in a StringDouble Reversal Trick Medium Arrays & Hashing Microsoft, Nvidia, Barclays +8 Solve
Invert Binary TreeRecursion Easy Trees & BST Amazon, Meta, Citi +1 Solve
Sort ColorsDutch National Flag Medium Arrays & Hashing Microsoft, Nvidia, Morgan Stanley +12 Solve
Max Consecutive Ones IIISliding Window · Variable Medium Arrays & Hashing Amazon, LinkedIn, IBM +2 Solve
Construct Binary Tree from Preorder and Inorder TraversalTree Serialization / Deserialization Medium Trees & BST Microsoft, Flipkart, Swiggy +2 Solve
Design HashMapPre-processing + tradeoffs Easy Design Data Structures Apple, Snowflake, VMware by Broadcom +1 Solve

Questions people ask

What coding questions does Ola ask most?

LRU Cache, Longest Substring Without Repeating Characters, Trapping Rain Water, Add Two Numbers, Two Sum, Validate Binary Search Tree, Group Anagrams, Binary Tree Maximum Path Sum.

Which topics come up in Ola coding rounds?

trees, heaps, graphs, backtracking, arrays, dynamic programming.

How hard are Ola coding questions?

Of the reported questions, 8 are easy, 30 medium and 5 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.