OLA Cabs interview questions

160 questions from 21 candidate reports · 2015 to 2024

Online test → Technical → Technical·55% entry level

DSA

Showing 31 of 97 reported in this area

Print the left view of a binary tree.
asked 4×easyPractice this →
Find the missing number in an arithmetic progression.
asked 2×easyPractice this →
Implement the Minesweeper game logic.
asked oncemediumPractice this →
Count the number of inversions in an array.
asked oncemediumPractice this →
Find the next permutation of a given string
asked oncemediumPractice this →
Generate all permutations of a given string.
asked oncemediumPractice this →
Implement an LRU (Least Recently Used) cache.
asked oncemediumPractice this →
Find the median from a running stream of numbers.
asked oncemediumPractice this →
Merge K sorted arrays into a single sorted array.
asked oncemediumPractice this →
Perform spiral (zigzag) traversal of a binary tree.
asked oncemediumPractice this →
Write full code to create a mirror of a binary tree
asked oncemediumPractice this →
Find the number of islands in a given binary matrix.
asked oncemediumPractice this →
Implement LRU cache using a language of your choice.
asked oncemediumPractice this →
Check whether a given binary tree is a Binary Search Tree (BST).
asked oncemediumPractice this →
Given a binary tree, print all the nodes visible from the top view.
asked oncemediumPractice this →
Given a node in a binary tree, find and print its inorder successor.
asked oncemediumPractice this →
Boolean Matrix problem (modify the matrix based on boolean conditions).
asked oncemediumPractice this →
Given a matrix, if an element is 0, set its entire row and column to 0.
asked oncemediumPractice this →
Given a very large matrix, find the maximum connected region available.
asked oncemediumPractice this →
Print all nodes at a given distance K from a target node in a binary tree.
asked oncemediumPractice this →
How would you sort a very large file on a single machine with limited memory?
asked oncemediumPractice this →
Given a string, count the number of different substrings that are palindromes.
asked oncemediumPractice this →
Find the square root of a number without using inbuilt functions in O(log N) time.
asked oncemediumPractice this →
Implement string matching where the pattern string may contain wildcard characters.
asked oncemediumPractice this →
Given x, y, and k, find the maximum value of a XOR b equal to k such that x ≤ a < b ≤ y.
asked oncemediumPractice this →
Find the inorder predecessor and successor for a given key in a Binary Search Tree (BST).
asked oncemediumPractice this →
Generate all distinct permutations of a given string that may contain duplicate characters.
asked oncemediumPractice this →
Given a number, generate the next smallest permutation greater than the current permutation.
asked oncemediumPractice this →
Given one small file and one very large file, how would you find all numbers common to both?
asked oncemediumPractice this →
Design and implement an LRU Cache using Doubly Linked List and HashMap with given constraints
asked oncemediumPractice this →
Represent the fraction of two integers as a string, handling repeating decimals appropriately.
asked oncemediumPractice this →

CS fundamentals

Showing 15 of 49 reported in this area

Explain how decision trees work.
asked oncemediumPractice this →
Explain Support Vector Machines (SVM).
asked oncemediumPractice this →
How does Garbage Collection work in Android?
asked oncemediumPractice this →
How would you optimize a slow-running SQL query?
asked oncemediumPractice this →
Explain the internal working of HashMap and hashing
asked oncemediumPractice this →
Explain heap implementation and its time complexities
asked oncemediumPractice this →
What are different approaches to unsupervised learning?
asked oncemediumPractice this →
How can the UI of Fragment B be updated from Fragment A?
asked oncemediumPractice this →
How would you mock Couchbase while writing unit test cases?
asked oncemediumPractice this →
How would you handle concurrency in the logging library design?
asked oncemediumPractice this →
What are schedulers and how are they used in large-scale systems?
asked oncemediumPractice this →
Explain common design patterns and related architectural concepts.
asked oncemediumPractice this →
Describe the CI/CD pipeline and its importance in software development.
asked oncemediumPractice this →
How would you handle uncertainties in Linear Discriminant Analysis (LDA)?
asked oncemediumPractice this →
How does a hash table work? Describe its best-case and worst-case time complexity.
asked oncemediumPractice this →

System design

Showing 11 of 27 reported in this area

Design an LRU (Least Recently Used) cache.
asked 2×mediumPractice this →
Design a MapReduce job to sort a very large dataset.
asked oncemediumPractice this →
Explain the Circuit Breaker pattern and its use cases
asked oncemediumPractice this →
How would you handle tail queries in a large-scale system?
asked oncemediumPractice this →
Explain different load balancing strategies and when to use them
asked oncemediumPractice this →
Design an email system with tagging and sub-tagging functionality.
asked oncemediumPractice this →
Design and implement a Bowling Game with proper object-oriented design
asked oncemediumPractice this →
Given an input stream of bits, check the occurrence of a given binary sequence.
asked oncemediumPractice this →
Discuss scalability considerations for different types of databases and caching layers
asked oncemediumPractice this →
Design a search-based replacement for the existing Support tab navigation in the OLA app
asked oncemediumPractice this →
Design an application monitoring system to handle data coming from various applications.
asked oncemediumPractice this →

Puzzles

2 questions reported in this area

Given two customers and two restaurants with preparation times and distances, determine the optimal delivery trajectory to minimize total delivery time.
asked oncemediumPractice this →
Puzzle: An employer has a gold bar of 7 units and must give 1 unit per day for 7 days. Using a magical knife that can only make two cuts total, how should the bar be cut?
asked oncemediumPractice this →

Behavioural

1 questions reported in this area

How would you quickly start executing in a new technical area under time constraints?

Showing 60 of 160 questions. Ranked by how often the same question came back across reports.

Practise a OLA Cabs-style interview

A spoken interview built from these questions, scored when you finish; the report is yours.

Start practising

Common questions

What questions does OLA Cabs ask?

Candidate interview reports most often cover DSA (55%) and CS fundamentals (28%).

How many rounds does OLA Cabs interview have?

Candidate interview reports show an average of 3.4 rounds per experience, with a typical sequence of Online test → Technical → Technical. Individual interview paths can vary.

Is the OLA Cabs interview hard?

Among questions with a reported difficulty, the mix is easy 31%, medium 53%, hard 16%.

Keep reading