Ola Interview Prep (SDE-1 / SDE-2)

Ola puts machine coding early. Reports place it at or near the front of the experienced-hire loop, roughly one to two hours, and the prompts are infrastructure-flavoured rather than product-flavoured: design and implement a logging library with pluggable appenders for file, network, and database; build a publish-subscribe system where multiple senders and receivers share topics; implement a bowling game with proper object modelling. The common thread is extensibility. Each prompt is really asking whether adding the fourth appender or the second subscriber type costs you one class or a rewrite.

Past that round the domain takes over. Live driver locations are a high-write, low-value-per-write stream, matching is a spatial query under a latency budget, and surge pricing is a feedback loop between supply and demand that has to be explainable to a rider. Ola also runs several distinct businesses, so the loop you get and the depth of geo work in it varies more than at most companies this size.


Interview Process

Stage Duration Focus
Online Coding Test (mainly campus) ~90 min 3 problems, easy to medium, all mandatory
Machine Coding 60-120 min Working program, extensibility graded
DSA Round 1 45-60 min Live coding, one or two problems
DSA Round 2 45-60 min Harder problem, often with follow-ups
System Design 60 min+ Real-time geo, matching, pricing
Hiring Manager 45-60 min Project depth, systems knowledge, motivation
HR ~20 min Background, notice period, logistics

Not every candidate sees every stage. Three to five rounds plus a short HR call is the commonly reported range. Experienced candidates often start with machine coding and no written test at all; campus candidates often start with the 90-minute test and get a shorter path afterwards.

The bigger variable is which business you are interviewing for. Ride-hailing, mapping, and the other group businesses weight the rounds differently, and only some of them put you anywhere near the geo stack. Ask before you spend a fortnight on spatial indexing.


What Ola Actually Tests

Ola has a small reported question pool — 24 tagged problems (5 Easy, 14 Medium, 5 Hard). That is too few to break down by percentage, but it is useful information on its own: a narrow pool means the specific problems below carry real weight, and your odds of drawing one you have already solved are much better than at a company with a two-thousand-problem list.

Work through the whole list rather than sampling it, and lean on the process and design sections on this page for the rounds the question data cannot tell you about.


Reported in the Last Six Months

The recency-filtered slice of Ola’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
2 Add Two Numbers Linked List Medium Solve →
3 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
4 Binary Tree Maximum Path Sum DP on Trees + Binary Tree Hard Solve →
5 Group Anagrams Sorting + Hash Table Medium Solve →
6 Two Sum Hash Table + Array Easy Solve →
7 Validate Binary Search Tree BST + Binary Tree Medium Solve →
8 3Sum Two Pointers Medium Solve →
9 Alien Dictionary DAG + Topological Sort Hard Solve →
10 All Nodes Distance K in Binary Tree Binary Tree + BFS Medium LeetCode →
11 Best Time to Buy and Sell Stock DP Easy Solve →
12 Climbing Stairs Memoization + DP Easy Solve →
13 Container With Most Water Greedy + Two Pointers Medium Solve →
14 Decode String Stack Medium Solve →
15 Delete Node in a Linked List Linked List Medium LeetCode →

System Design (HLD) Problems Asked at Ola

# Problem Difficulty Link
1 Ride Hailing (Uber / Ola) Advanced Read →
2 Nearby Service (Driver Proximity Search) Intermediate Read →
3 Message Queue (Location Ping Ingest) Advanced Read →
4 Payment System (Fares and Driver Payouts) Advanced Read →
5 Notification System (Trip Updates) Intermediate Read →
6 Metrics and Monitoring System Intermediate Read →
7 Rate Limiter Beginner Read →
8 Distributed Cache (Driver State) Intermediate Read →

LLD / Machine Coding Problems Asked at Ola

The reported prompts are narrow enough to prepare directly. Note how many are infrastructure components rather than business domains — Ola’s machine coding round is closer to “build a small library” than “model a business”.

# Problem Difficulty Link
1 Logging Library (pluggable appenders) Intermediate —
2 Pub-Sub System (Topics, Senders, Receivers) Intermediate Read →
3 Ride Matching Intermediate Read →
4 Parking Lot Beginner Read →
5 Queue Management Intermediate Read →
6 Rate Limiter Intermediate Read →

DSA Problems Asked at Ola

24 problems across 10 pattern groups. Each group is allocated in proportion to its real share of Ola’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 5 on the list.

# Problem Pattern Difficulty Link
1 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
2 Best Time to Buy and Sell Stock DP Easy Solve →
3 Climbing Stairs Memoization + DP Easy Solve →
4 House Robber DP Medium Solve →
5 Unique Paths Combinatorics + DP Medium Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 3 on the list.

# Problem Pattern Difficulty Link
6 Alien Dictionary DAG + Topological Sort Hard Solve →
7 Number of Islands Union-Find + BFS Medium Solve →
8 Word Ladder Bidirectional Search + BFS Hard Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 3 on the list.

# Problem Pattern Difficulty Link
9 Binary Tree Maximum Path Sum DP on Trees + Binary Tree Hard Solve →
10 Validate Binary Search Tree BST + Binary Tree Medium Solve →
11 All Nodes Distance K in Binary Tree Binary Tree + BFS Medium LeetCode →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 3 on the list.

# Problem Pattern Difficulty Link
12 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
13 3Sum Two Pointers Medium Solve →
14 Container With Most Water Greedy + Two Pointers Medium Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 3 on the list.

# Problem Pattern Difficulty Link
15 Two Sum Hash Table + Array Easy Solve →
16 Find Pivot Index Prefix Sum Easy Solve →
17 First Missing Positive Hash Table + Array Hard Solve →

Linked List

Pointer surgery under time pressure. Draw the nodes before you write the reassignments. All 2 on the list.

# Problem Pattern Difficulty Link
18 Add Two Numbers Linked List Medium Solve →
19 Delete Node in a Linked List Linked List Medium LeetCode →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 2 on the list.

# Problem Pattern Difficulty Link
20 Group Anagrams Sorting + Hash Table Medium Solve →
21 Excel Sheet Column Title Math + String Easy LeetCode →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. One on the list.

# Problem Pattern Difficulty Link
22 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. One on the list.

# Problem Pattern Difficulty Link
23 Find Minimum in Rotated Sorted Array Binary Search Medium Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. One on the list.

# Problem Pattern Difficulty Link
24 Decode String Stack Medium Solve →

Ola’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 5 (21%) Trapping Rain Water, Best Time to Buy and Sell Stock, Climbing Stairs
2 Graphs High 3 (13%) Alien Dictionary, Number of Islands, Word Ladder
3 Trees High 3 (13%) Binary Tree Maximum Path Sum, Validate Binary Search Tree, All Nodes Distance K in Binary Tree
4 Sliding Window & Two Pointers Medium-High 3 (13%) Longest Substring Without Repeating Characters, 3Sum, Container With Most Water
5 Arrays & Hashing Medium-High 3 (13%) Two Sum, Find Pivot Index, First Missing Positive
6 Linked List Medium-High 2 (8%) Add Two Numbers, Delete Node in a Linked List
7 Strings Medium 2 (8%) Group Anagrams, Excel Sheet Column Title
8 Tries & String Search Medium 1 (4%) Longest Palindromic Substring
9 Binary Search Medium 1 (4%) Find Minimum in Rotated Sorted Array
10 Stack & Monotonic Stack Medium 1 (4%) Decode String

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Graphs, Trees covers the bulk of what Ola actually asks. The rest is insurance for the one round that goes somewhere unexpected.


The Ola Online Coding Test

Reported mainly from campus drives. Experienced candidates frequently skip it and start with a live round instead, with reports naming shared-editor pairing tools for those.

Slot Typical difficulty Common topics Notes
Q1 Easy Arrays, strings All three are mandatory
Q2 Easy to medium Strings, hashing No choice between problems
Q3 Medium Dynamic programming Usually the time sink

Because all three are required, triage matters more than depth. Read all three first, bank the two you can finish, then spend what remains on the third.


Commonly Reported Problems Beyond the Tagged List

The Ola-tagged pool is twenty-four problems, split fairly evenly across arrays, strings, trees, and graphs, with Alien Dictionary, Word Ladder, and Binary Tree Maximum Path Sum as the hard entries. These additions follow the same patterns, weighted towards the ones a mobility domain actually uses.

# Problem Pattern Why it fits Ola Link
1 K Closest Points to Origin Heap + geometry Nearest-driver selection in its simplest form LeetCode →
2 Network Delay Time Dijkstra Shortest path with weights, the ETA question underneath Solve →
3 Cheapest Flights Within K Stops Bellman-Ford or BFS with state Routing under a constraint Solve →
4 Course Schedule II Topological sort The ordering half of their Alien Dictionary entry Solve →
5 LRU Cache Design + doubly linked list Driver state caching, and a standard LLD warm-up Solve →
6 Design Underground System Design + hash table Trip start and end events with averages, almost the domain LeetCode →
7 Insert Delete GetRandom O(1) Design A pool of available drivers with random selection LeetCode →
8 Random Pick with Weight Binary search + prefix sum Weighted dispatch tie-breaking LeetCode →
9 Meeting Rooms II Intervals + heap Overlapping trips against limited supply Solve →
10 Car Pooling Intervals + difference array Shared rides with capacity, literally their product Solve →
11 Rotting Oranges Multi-source BFS Spread over a grid, the same muscle as cell-based search Solve →
12 Moving Average from Data Stream Data stream Rolling metrics over a ping stream Solve →

If you are short on time: weighted shortest path, heaps with intervals, and stateful class design cover most of it.


Behavioural Round

# Question
1 Walk me through a system you owned that handled a high write volume.
2 Tell me about a time you debugged something only reproducible in production.
3 Tell me about a design you had to change after it was already live.
4 Tell me about a time you worked with a team that owned a dependency you needed.
5 Tell me about a trade-off between latency and accuracy you made deliberately.
6 Tell me about something you shipped that failed. What did you learn?
7 Which part of the mobility problem interests you, and why Ola?

Ola’s behavioural rounds are less ritualised than the big-tech equivalents, so the interviewer is forming an impression rather than scoring a rubric. Concrete ownership of something operational, described without inflation, is what lands.


13-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming Trapping Rain Water, Best Time to Buy and Sell Stock, Climbing Stairs
2 Graphs Alien Dictionary, Number of Islands, Word Ladder
3 Trees Binary Tree Maximum Path Sum, Validate Binary Search Tree, All Nodes Distance K in Binary Tree
4 Sliding Window & Two Pointers Longest Substring Without Repeating Characters, 3Sum, Container With Most Water
5 Arrays & Hashing Two Sum, Find Pivot Index, First Missing Positive
6 Linked List Add Two Numbers, Delete Node in a Linked List
7 Strings Group Anagrams, Excel Sheet Column Title
8 Tries & String Search Longest Palindromic Substring
9 Binary Search Find Minimum in Rotated Sorted Array
10 Stack & Monotonic Stack Decode String
11 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
12 Revision Redo the problems you failed or needed a hint on.
13 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Ola Interviews

  1. Build a small pluggable library before the interview. A logger with appenders behind an interface, configurable at runtime, is the most directly reported Ola machine coding prompt. Build it once and you have also rehearsed the pub-sub prompt, because the structure is the same.
  2. Make extensibility visible. These prompts are graded on whether a new appender, topic, or subscriber slots in cleanly. Say out loud which interface is the extension point and why.
  3. Separate the location stream from everything else. Pings from every active driver are high-volume and low-value individually. State plainly that they do not go in the primary transactional database, and name where they do go: an in-memory geo index for current position, a durable store or stream for history.
  4. Learn the geo primitives properly. Geohash or S2 cells, cell-based neighbour queries, why you query a ring of cells rather than a radius, and how you handle a city centre cell with far more drivers than a suburban one.
  5. Have a defensible surge answer. Supply and demand measured per cell over a short window, smoothing so the multiplier does not oscillate, a cap, and a rule for what the rider is shown and when the quote is locked.
  6. Expect the campus test to require all three problems. Reports describe three mandatory problems in 90 minutes with no choice between them, which makes time management, not difficulty, the binding constraint.

Other Company Prep


The reported Ola-tagged question pool is small and the loop varies substantially across the group businesses, by level, and by whether you are a campus or experienced candidate. No single report covers every stage listed above. Everything here is community-reported rather than official. Confirm your rounds with your recruiter.