The Wayback Machine - https://web.archive.org/web/20240930163128/https://www.geeksforgeeks.org/ola-cabs-topics-interview-preparation/
Open In App

Ola-Cabs Topics for Interview Preparation

Last Updated : 26 Jun, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Easy Level

  1. Find the element that appears once
  2. A Boolean Matrix Question
  3. Find the Missing Number
  4. Level Order Tree Traversal
  5. Square root of an integer
  6. Write an Efficient Function to Convert a Binary Tree into its Mirror Tree
  7. Find the character in first string that is present at minimum index in second string
  8. Find the missing number in Arithmetic Progression
  9. Find the element that appears once in a sorted array
  10. Given a string, find its first non-repeating character
  11. Inorder predecessor and successor for a given key in BST
  12. Level order traversal in spiral form
  13. Maximum difference between two elements such that larger element appears after the smaller number
  14. Print Left View of a Binary Tree
  15. Print nodes at k distance from root
  16. Search in a row wise and column wise sorted matrix
  17. Sort an array of 0s, 1s and 2s
  18. Stock Buy Sell to Maximize Profit
  19. String matching where one string contains wildcard characters

Medium Level

  1. Binary Heap
  2. Count All Palindrome Sub-Strings in a String | Set 1
  3. Count All Palindrome Sub-Strings in a String
  4. Find the number of islands | Set 1 (Using DFS)
  5. Largest Sum Contiguous Subarray
  6. Print all words matching a pattern in CamelCase Notation Dictonary
  7. Wildcard Pattern Matching

Hard Level

  1. Backtracking | Set 7 (Sudoku)
  2. Find all distinct palindromic sub-strings of a given string
  3. Implement LRU Cache
  4. Median in a stream of integers (running integers)
  5. Print all nodes at distance k from a given node


Previous Article
Next Article

Similar Reads

Ola-Cabs Interview Preparation
Here, you can find all the technical resources (articles, coding problems, subjective problems, video tutorials and interview experiences) that are helpful in preparing for "Ola Cabs Interview" !! Company's Website URL: www.olacabs.com/ Popular ArticlesMaximum difference between two elements such that larger element appears after the smaller number
2 min read
Ola Cabs Interview Experience for SDE-2
Round 1: Next permutation for a given stringDP problem, Given two strings A & B, Find how many times string B occurs as a subsequence in A. Example A = "aacb", B = "ab", ans = 2 because B occurs twice in A. Example A = "aabb", B = "ab", ans = 4 Round 2: Given 2 strings A & B. Find the smallest substring in A which contains all the character
1 min read
OLA Cabs Interview Experience (Bangalore)
I attended the interview for OLA Cabs in Bangalore for SDE position recently. Here is my interview experience. Round 1 Written Coding Test (1 hour) We were asked to design a Bowling game and write code for it with proper OOPS concepts . The problem statement was not difficult . Main focus was to check coding skills and writing good quality code per
2 min read
OLA Cabs Interview Experience | Set 2 (For Android - 1.5 Years)
First Round Written Test 1) Implement Stack Operations. Also maintain count of Largest Integer present in Stack at any given point of Time. 2) Implement Minesweeper Game. 3) Design an Android application to emulate Countdown .. Take Input from the User and start counting down from entered value till Zero with Updating App UI at every count. Show Co
2 min read
OLA Cabs Interview Experience | Set 3
I attended interview for Ola high availability team. Below are the questions. 1) Find k distant nodes in given tree. The paths going through parent should also be printed. 2) Find the first non repeating character in given string. 3) Give design for leader board implementation. 1000 customers with maximum points should be displayed on the leader da
1 min read
OLA Cabs Interview Experience | Set 4 (For SDE 2)
I was recently interviewed for SDE 2 position at OlaCabs. Round 1 (around 1 hour) Design and implement a logging library. Preferred language was Java. - There can be multiple appenders - like file, network, db etc. Should be easy to add appenders. - Library should be easily configurable. - Message format should be configurable. - Logger should not
2 min read
OLA Cabs Interview Experience | Set 5 (For SDE ||)
Design the entire bowling alley system. One bowling game will be played by multiple players on a single lane. During the game,players and their scores will be maintained and shown by the system and winner will be declared at the end of the game. Likewise multiple games can be played in parallel on multiple free lanes. Some rules about bowling: A ga
1 min read
Amazon topics for Interview Preparation
Table of Content Easy LevelMedium LevelHard LevelEasy LevelHow to check if given four points form a squareCheck if a string can be obtained by rotating another string 2 placesFind the nearest smaller numbers on left side in an arrayFind if two rectangles overlapPair with given product | Set 1 (Find if any pair exists)Position of rightmost set bitPr
13 min read
Samsung Topics for Interview Preparation
Table of Content Easy LevelMedium LevelEasy LevelProgram to find sum of prime numbers between 1 to nCount number of bits to be flipped to convert A to BHeap SortQueue | Set 2 (Linked List Implementation)Stack Data Structure (Introduction and Program)Swap two nibbles in a byteFind the middle of a given linked list in C and JavaWrite a program to pri
2 min read
Adobe Topics for Interview Preparation
Table of Content Easy LevelMedium Level Hard Level Easy LevelCheck if a number is PalindromeCheck if a given Binary Tree is SumTreeCount pairs (a, b) whose sum of cubes is N (a^3 + b^3 = N)Count set bits in an integerProgram for Binary To Decimal ConversionQuickSortFind the middle of a given linked list in C and JavaWrite an Efficient Function to C
3 min read
Microsoft Topics for Interview Preparation
Table of Content Easy LevelMedium LevelHard LevelEasy LevelBinary representation of a given numberFind max in struct arrayFind if two rectangles overlapCalculate the difficulty of a sentenceCheck if a linked list is Circular Linked ListConverting Decimal Number lying between 1 to 3999 to Roman NumeralsCount distinct elements in every window of size
6 min read
Flipkart Topics for Interview Preparation
Table of Content Easy LevelMedium LevelHard LevelEasy LevelChocolate Distribution ProblemInteresting Facts about Bitwise Operators in CLevel Order Tree TraversalSum of dependencies in a graphFind the middle of a given linked list in C and JavaAdd two numbers represented by linked lists | Set 1Breadth First Traversal or BFS for a GraphCount Inversio
2 min read
Google Topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelFind all triplets with zero sumGenerate all binary strings from given patternCount of strings that can be formed using a, b and c under given constraintsFind largest word in dictionary by deleting some characters of given stringFind subarray with given sum | Set 1 (Nonnegative Numbers)Find
2 min read
Facebook Topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelConverting Decimal Number lying between 1 to 3999 to Roman NumeralsFind all triplets with zero sumLargest subset whose all elements are Fibonacci numbersCalculate maximum value using '+' or '*' sign between two numbers in a stringConvert Ternary Expression to a Binary TreeConverting Roman
1 min read
Goldman Sachs Topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelFind if two rectangles overlapCheck if a given Binary Tree is SumTreeCheck if two arrays are equal or notMerge SortQueue | Set 1 (Introduction and Array Implementation)QuickSortUgly NumbersFind Excel column name from a given column numberGiven a string, find its first non-repeating charact
1 min read
DE Shaw Topics for Interview Preparation
Table of Content Easy LevelMedium LevelEasy LevelLevel Order Tree TraversalCheck if two trees are MirrorLevel Order Tree TraversalPrint all nodes that don't have siblingA Product Array PuzzleCopy set bits in a rangeFind the element that appears once in a sorted arrayGiven a string, find its first non-repeating characterImplement Stack using QueuesI
1 min read
Visa topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelHeap SortStack Data Structure (Introduction and Program)Dynamic Programming | Set 10 ( 0-1 Knapsack Problem)Find subarray with given sum | Set 1 (Nonnegative Numbers)Given only a pointer/reference to a node to be deleted in a singly linSearch in a row wise and column wise sorted matrixMedi
1 min read
Paytm Topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelSegregate 0s and 1s in an arrayC Program to Check if a Given String is PalindromeC program to multiply two matricesCalculate the angle between hour hand and minute handCount frequencies of all elements in array in O(1) extra space and O(n) timeFind the minimum distance between two numbersM
2 min read
Morgan-Stanley Topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelBubble SortCount numbers from 1 to n that have 4 as a a digitHeap SortLargest even number possible by using one swap operation in given numberMinimum number of distinct elements after removing m itemsQuickSortRemove duplicates from sorted arraySwap Kth node from beginning with Kth node fro
1 min read
SAP Topics for Interview Preparation
Easy LevelBubble SortHeap SortQuickSortReverse words in a given stringSort a linked list of 0s, 1s and 2sWrite a function to reverse a linked listMedium Level Check if a number is Bleak Hard Level Median in a stream of integers (running integers)
1 min read
MAQ Software Topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelWrite a C program to reverse digits of a numberWrite a program to reverse an array or stringArray RotationProgram for array rotationCheck if a linked list is Circular Linked ListProgram for Fibonacci numbersFind the middle of a given linked list in C and JavaWrite a program to print all pe
1 min read
vmware Topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelWrite a program to reverse an array or stringA Boolean Matrix QuestionCount frequencies of all elements in array in O(1) extra space and O(n) timeFind common elements in three sorted arraysProgram for Armstrong NumbersRun Length EncodingSieve of EratosthenesFind the middle of a given linke
1 min read
Directi Topics for Interview Preparation
Table of Content Easy Level Medium LevelHard LevelEasy LevelCount number of strings (made of R, G and B) using given combinationFind Maximum dot product of two arrays with insertion of 0'sFind the maximum path sum between two leaves of a binary treeK-Nearest NeighboursLargest sum Zigzag sequence in a matrixN-th root of a numberPrint all Jumping Num
1 min read
Cisco Topics for Interview Preparation
Easy LevelBubble SortCount set bits in an integerFind the Missing NumberHow to check if a given array represents a Binary Heap?Level Order Tree TraversalWrite a program to print all permutations of a given stringInsertion SortReverse words in a given stringSorted Array to Balanced BSTWrite a function to reverse a linked listMedium Level Greedy Algo
1 min read
Ola Interview Experience for SDE 2
Round 1(DSA): Kind of Machine Coding 2 questions were asked and I was asked to solve either of them. I was asked a graph type problem but it was solvable using Hashmap and HashSet Another question was to make LRU cache(DLL + HM) with some constraints. Round 2(HLD): Resume deep levelDesign Spotify (music streaming application) Round 3(Hiring Manager
1 min read
OLA Electric Interview Experience for SDE (On-Campus)
There was a total of 3 rounds, There were no % criteria, open for CSE, IT, ECE, EI, EN streams. The position offered was Software Development Engineer(SDE) Round 1 (Online Assessment): It was a 90 minutes online coding round. There were 3 coding questions (easy-medium) and all were mandatory to attempt. Questions covered were from arrays, string, D
2 min read
Ola Interview Experience for SDE-2 2022
Just given the test.It was an online test. Directly come to questions. There were 2 questions. Ignore all negative numbers and then print the mid element of the new array of positive numbers. It's guaranteed that there will always be at least one positive number The order should be maintained as the original array. In the case of 2 mid elements, pi
1 min read
Ola Interview Experience | Set 14 (For SDE 1)
Round 1: coding competition on Hackerrank It has 3 questions. Ticket booking system: ‘N’ people are standing queue to collect tickets. Due to high demand, 1 person gets 1 ticket at a time. For another ticket, person should go back to the end of queue. It takes 1 second to issue a ticket. Given an array A containing number of tickets required for ea
2 min read
OLA Interview Experience | Set 15 (1 Year Experienced for SDE1)
I recently applied for OLA SDE 1 from Linkedin. HR got in contact with me via email and scheduled an interview date for F2F Round 1: The first round was a written one. There were two questions given. Question 1: There are two kinds of bots A and B in a 1-D array. 'A' bot can only move left while 'B' can only move right. There are also empty spaces
3 min read
OLA Interview Experience (Off-Campus)
I applied to OLA in off campus drive for Full Stack Developer role. Round 1. First round was telephonic round. First question was tell me about yourself then I was asked few questions from OOP in rapid fire manner then basic approach as to how to reverse alternate nodes in a linked list without modifying the data of the linked list, next question w
3 min read
Practice Tags :