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

SDE - 1

Delhivery ltd
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
First, I was selected for a Tier 1 college, and that’s when my journey in coding began. I did most of my coding in my final years, but I regret not starting earlier.
Application story
This is a campus opportunity. The company visited our college and conducted an online assessment exam. Out of 146 students, 12 were selected for the interview.
Why selected/rejected for the role?
I was rejected because I didn't have enough strong projects on my resume and couldn't answer all the questions.
Preparation
Duration: 4 months
Topics: Data Structures, Computer Network, DevOps, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Complete 500 high-quality questions. 

Tip 2: Have a few solid projects on your resume.

Application process
Where: Campus
Eligibility: 6.5 and above (Salary: 11LPA)
Resume Tip
Resume tip

Tip 1: Include some projects on your resume.
Tip 2: Do not include false information on your resume.

Interview rounds

01
Round
Medium
Video Call
Duration50 minutes
Interview date3 Nov 2023
Coding problem2

Timing: 8 to 9 PM.
How was the environment? It was decent.
How was the interviewer? They were a nice person.

1. Next Permutation

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

You have been given a permutation of ‘N’ integers. A sequence of ‘N’ integers is called a permutation if it contains all integers from 1 to ‘N’ exactly once. Your task is to rearrange the numbers and generate the lexicographically next greater permutation.

To determine which of the two permutations is lexicographically smaller, we compare their first elements of both permutations. If they are equal — compare the second, and so on. If we have two permutations X and Y, then X is lexicographically smaller if X[i] < Y[i], where ‘i’ is the first index in which the permutations X and Y differ.

For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

Problem approach

Here, we need to find the next permutation of an array. For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

Try solving now

2. Next Smaller Element

Moderate
25m average time
75% success
0/80
Asked in companies
IBMAmazonWalmart

You are given an array 'ARR' of integers of length N. Your task is to find the next smaller element for each of the array elements.

Next Smaller Element for an array element is the first element to the right of that element which has a value strictly smaller than that element.

If for any array element the next smaller element does not exist, you should print -1 for that array element.

For Example:

If the given array is [ 2, 3, 1], we need to return [1, 1, -1]. Because for  2, 1 is the Next Smaller element. For 3, 1 is the Next Smaller element and for 1, there is no next smaller element hence the answer for this element is -1.
Problem approach

I used the stack concept to solve this question.

Try solving now
02
Round
Easy
Video Call
Duration40 minutes
Interview date5 Nov 2023
Coding problem3

1. Data Structures

What is a Map? Explain how an ordered Map works, etc. (Learn)

2. Operating System

What is Thrashing? (Learn)
What is virtual memory? (Learn)

3. Leftmost & Rightmost Nodes of Binary Tree

Easy
20m average time
80% success
0/40
Asked in companies
SAP LabsGrabDisney + Hotstar

You are given an arbitrary binary tree with N nodes, whose nodes have their values in the range of integers. You have to print the values of leftmost and rightmost nodes at each level of the given tree. In other words, for every level in the given tree, print the values of corner nodes.

Two nodes are said to be at the same level if they are at the same distance from the root node.

Note:

1. For all such levels where there is only one corner node the leftmost and the rightmost nodes are the same.
2. In the output, you have to print the leftmost and rightmost values in level order fashion i.e, the leftmost node of level1 followed by the rightmost node of level1 followed by the leftmost node of level2 followed by the rightmost node of level2 and so on.
Problem approach

Using level-wise order traversal, we will maintain a queue to store the pending nodes. Starting from the 0th level, i.e., the root node, we will add the root node to the queue. For each level stored in the queue (initially, we have the 0th level), we will poll nodes one by one from the queue and add the corresponding children to the queue. While popping nodes, we will also print the first (leftmost) and last (rightmost) nodes of that level. This way, we will have another level pending in the queue to traverse. This process continues until the last level is traversed (see the algorithm below for the approach).

Try solving now

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 recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes