Ola interview experience Real time questions & tips from candidates to crack your interview

SDE

Ola
upvote
share-icon
2 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Solve RS Aggarwal Aptitude and Problem Solving Books.
Tip 2 : Practice Coding questions from prepInsta.
Tip 3 : Worked on communication skills

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Mark skills with Bold letters.
Tip 2 : Mention projects on resume

Interview rounds

01
Round
Medium
Online Coding Test
Duration50 minutes
Interview date11 Nov 2021
Coding problem5

- Morning time
- Environment was good.
- No
- Interviewer was good

1. Catch Pokemon

Ninja
60m average time
40% success
0/200
Asked in company
Ola

There are ‘N’ cities in Pokeland, and they are connected by ‘N-1’ roads. It is possible to reach from any city to any other city and there is a unique path between each pair of cities.

Each city has one Pokemon represented by an integer between 1 and 10^9. In each city. Given queries in the form of pairs of cities ‘U’ and ‘V’, find the number of Pokemon Ash catches while traveling from city ‘U’ to ‘V’. If he already has a Pokemon ‘X’ and he comes across it again, he does NOT catch it.

Note: Each query is independent, that is, he starts each query with zero Pokemon.

Try solving now

2. Break The Tree

Moderate
30m average time
70% success
0/80
Asked in companies
OlaAdobeGoogle inc

You are given a binary tree whose each node is associated with some integer value. You have to break this tree into two parts by removing exactly one edge. You also have to maximise the product of the sum of the integers associated with each node in both parts.

For Example:

Example

Consider the above example, if we break the tree by removing the edge between nodes that has integers 5 and 6 then we get the maximum product of the sum of integers on nodes i.e. ( (6 + 4 + 1) * (5 + 1 + 3 + 2) ) = 121.
Note:
The answer may be very large so, you have to take the modulo with 10^9 + 7.
Try solving now

3. Restore Peace

Hard
50m average time
55% success
0/120
Asked in companies
OlaAmazon

There is a kingdom with ‘N’ cities that are connected by roads. The cities are connected to form a tree, where cities represent the nodes, and the roads represent the edges. The cities are numbered from 0 to ‘N-1’ and the length of each road is 1 unit.

A tree is a hierarchical data structure defined as a collection of nodes.

Now, a battle is going on in some cities of the kingdom, where the king must visit to restore peace. Initially, the king is at the 0th node(root node). The cities where battles are going on will be given as an input array, and the king has to visit in the same order as given in the input array 'battles'. You have to find the total length of the road the king has to travel to restore peace in all the cities.

For Example:
For the test case:
N = 3, Q = 2
Edge 1 connects 0 and 1
Edge 2 connects 0 and 2
battles = [1, 2]

The king has to visit first city 1 and then city 2. To visit city 1, he has to travel 1 unit, and now he is in city 1. To visit city 2 from city 1, he has to travel another 2 units. So overall, he has to travel 3 units of distance.
Try solving now

4. Check Square

Moderate
10m average time
90% success
0/80
Asked in companies
Expedia GroupOlaIntuit

You are given four points on a two-dimensional coordinate system.

Can you check if those four points make a square?

Example:
Let the input be [1,0,2,1] and [0,1,1,2].
So, the coordinates of the four points be [ {1, 0}, {0, 1}, {2, 1}, {1, 2} ]

example

From the above image, we can see that it is a square. Thus, the output will be ‘Yes’.
Try solving now

5. Number Pattern

Easy
0/40
Asked in companies
OlaDaffodil SoftwarePaxcom

Pattern for N = 4

1
23
345
4567
Try solving now
02
Round
Medium
HR Round
Duration10 minutes
Interview date26 Feb 2022
Coding problem1

- Morning time
- Environment was good.
- No
- Interviewer was good

1. Basic HR Questions

1. Tell me about yourself. 
2. Why are you interested in this position? 
3. Why are you leaving your current job? 
4. Can you describe a work or school instance in which you messed up? 
5. Tell me about a time when you experienced conflict with a co-worker and how you dealt with it?

Problem approach

Tip 1 : Practice on mock test
Tip 2 : Go with commutation skills
Tip 3 : Be positive while communicate

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Ola
1704 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 5 problems
Interviewed by Ola
1612 views
0 comments
0 upvotes
company logo
SDE
2 rounds | 6 problems
Interviewed by Ola
1357 views
0 comments
0 upvotes
company logo
SDE-3
3 rounds | 6 problems
Interviewed by Ola
1268 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE
3 rounds | 6 problems
Interviewed by PhonePe
0 views
0 comments
0 upvotes
company logo
SDE
5 rounds | 8 problems
Interviewed by Mathworks
1223 views
0 comments
0 upvotes
company logo
SDE
4 rounds | 7 problems
Interviewed by PhonePe
0 views
0 comments
0 upvotes