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

Software Developer

Delhivery
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Algorithms, System design, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.

Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.

Tip 3 : Do at-least 2 good projects and you must know every bit of them.


 

Application process
Where: Referral
Eligibility: Above 2 years of experience
Resume Tip
Resume tip

Tip 1: Mention the side projects which reflect the work done on server side
Tip 2: Mention how your work impacted the organisation in brief.

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 minutes
Interview date11 Mar 2021
Coding problem2

All rounds were conducted online only.
First round was taken by a Senior Software developer. She was really polite and patient. She asked for my intro and my present experience.

1. Given the root of a binary tree. Check whether it is a BST or not.

Moderate
25m average time
0/80
Asked in companies
FacebookAmazonFreshworks

You have been given a binary tree of integers with N number of nodes. Your task is to check if that input tree is a BST (Binary Search Tree) or not.

A binary search tree (BST) is a binary tree data structure which has the following properties.

• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
Example :

BST1

Answer :

Level 1: 

All the nodes in the left subtree of 4 (2, 1, 3) are smaller 
than 4, all the nodes in the right subtree of the 4 (5) are 
larger than 4.

Level 2 :

For node 2:
All the nodes in the left subtree of 2 (1) are smaller than 
2, all the nodes in the right subtree of the 2 (3) are larger than 2.
For node 5:
The left and right subtrees for node 5 are empty.

Level 3:

For node 1:
The left and right subtrees for node 1 are empty.
For node 3:
The left and right subtrees for node 3 are empty.

Because all the nodes follow the property of a binary search tree, the above tree is a binary search tree.
Problem approach

This problem could have been solved in two ways,, simplest one would have been to store the inorder traversal of the binary tree in an array and then check if the array is in strictly ascending order or not. But it would have taken extra space other than that of stack during recursion.
Other Approach was to keep the track of parent left and parent right at at every step check for the condition whether left parent is smaller than root and right parent is greater than the root.

Try solving now

2. Search an element in a sorted and rotated array

Moderate
30m average time
65% success
0/80
Asked in companies
MicrosoftOptumZS Associates

Aahad and Harshit always have fun by solving problems. Harshit took a sorted array consisting of distinct integers and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4, 5] and if he rotates it by 2, then the array becomes: [4, 5, 1, 2, 3].

After rotating a sorted array, Aahad needs to answer Q queries asked by Harshit, each of them is described by one integer Q[i]. which Harshit wanted him to search in the array. For each query, if he found it, he had to shout the index of the number, otherwise, he had to shout -1.

For each query, you have to complete the given method where 'key' denotes Q[i]. If the key exists in the array, return the index of the 'key', otherwise, return -1.

Note:

Can you solve each query in O(logN) ?
Problem approach

It is similar to search in a sorted array using binary search, only catch here is at each midpoint we need to check whether left or right part is sorted. If our target lies in the range of sorted part, we can do a binary search in that part, otherwise repeat the same process for another part.

Try solving now
02
Round
Easy
Video Call
Duration50 minutes
Interview date13 Apr 2022
Coding problem3

Second Round was taken by an experienced Tech Lead. She was again very polite and friendly. She asked me to give a brief introduction and explain the projects I have done so far.
In then existing role, I was primarily working on react redux, i gave her an overview of the product I was working on while stating the importance of redux like state management technologies.

1. Microservices Question

What is a monolothic architecture?
What is a Micro service architecture?
When would you go for monolithic architecture sometimes?
What advantages does micro service architecture hold again monolithic?

Problem approach

Tip 1: Have clear understanding of monolithic and microservices
Tip 2: Good to say a few points where you have seen the microservice architecture in action
 

2. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
QuikrMicrosoftSAP Labs

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

This problem was straight forward and primarily interviewer wanted to see the knowledge of pointers.

Try solving now

3. DBMS Question

When would you choose a NoSQL db over sql DB?

Problem approach

Tip 1: Know the use cases of NoSQL DB such as convenient for storing unstructured data
Tip 2: Know the benefits of using SQL DB such as relational support and methodological approach while designing.
 

03
Round
Easy
Video Call
Duration30 minutes
Interview date7 May 2020
Coding problem1

Third round was taken by a director of technology. As usual this round started with the introduction and my expectations from the organization. Interviewer sounded strict but was friendly enough.

1. System Design Question

Given a table of states having a column which specifies the live number of deliveries made till time, suggest an approach how would you go about updating its records in real time.

Problem approach

Approach : I think Web Sockets was crucial for this.
 

Here's your problem of the day

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

Skill covered: Programming

What is the purpose of the < title > tag in HTML?

Choose another skill to practice
Similar interview experiences
company logo
Software Developer
3 rounds | 7 problems
Interviewed by Delhivery
998 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Delhivery
858 views
0 comments
0 upvotes
company logo
Software Developer
2 rounds | 2 problems
Interviewed by Delhivery
1019 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 5 problems
Interviewed by Delhivery
831 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
3 rounds | 8 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
Software Developer
2 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
2527 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by HCL Technologies
2173 views
1 comments
0 upvotes