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

SDE - Intern

Dunzo
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 Month
Topics: Recursion, stack, graph, backtracking, string
Tip
Tip

Tip 1: Do not be nervous
Tip 2 : Ask questions from the interviewer if you are confused

Application process
Where: Company Website
Eligibility: No
Resume Tip
Resume tip

Tip 1 : Mention your coding achievement in the resume
Tip 2 : You should have at least one good project on your resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 Minutes
Interview date14 Oct 2021
Coding problem2

This was a DS/Algo round.
Timing was 4:00pm-5:00pm IST.
The interviewer was very friendly.
He asked for my introduction.

1. Asteroid Collision

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

You are given an array/list 'asteroids' representing asteroids in a row.


For each element of the given array, its absolute value denotes the size of that asteroid, and its sign denotes the direction it moves in(+ve meaning right and -ve meaning left).


An asteroid with a weight of 0 denotes a massless asteroid that moves in the right direction.


All asteroids are moving at the same speed. Whenever two asteroids collide, the smaller asteroid gets destroyed.


If both asteroids are the same size, then both asteroids get destroyed. Two asteroids moving in the same direction never collide.


You are supposed to find the state of the asteroids after all collisions.


Example :
Input: ‘asteroids’ = [3,-2,4]

Output: [3, 4]

Explanation: The first asteroid will destroy the second asteroid. Hence, after the collision, the state of the asteroids will be [3,4].
Note:
You don’t need to print anything. Just implement the given function.
Problem approach

Step 1 : I was able to think of a stack solution directly.
Step 2 : We have to keep track of asteroids that are moving in the right direction.
Step 3 : When we found an asteroid that is moving in the left direction then we will use the stack to check asteroids that will collide.

Try solving now

2. Valid Parentheses

Easy
10m average time
80% success
0/40
Asked in companies
OracleAmerican ExpressPayPal

You're given a string 'S' consisting of "{", "}", "(", ")", "[" and "]" .


Return true if the given string 'S' is balanced, else return false.


For example:
'S' = "{}()".

There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
Try solving now
02
Round
Medium
Online Coding Test
Duration60 Minutes
Interview date19 Oct 2021
Coding problem1

Timing was 3:00pm-4:00pm IST
Interviewer was friendly
He asked for my introduction. We dry run the code for the question.

1. Word Break II

Hard
15m average time
85% success
0/120
Asked in companies
SalesforceHikeDunzo

You are given a non-empty string S containing no spaces’ and a dictionary of non-empty strings (say the list of words). You are supposed to construct and return all possible sentences after adding spaces in the originally given string ‘S’, such that each word in a sentence exists in the given dictionary.

Note :

The same word in the dictionary can be used multiple times to make sentences.
Assume that the dictionary does not contain duplicate words.
Problem approach

Step 1 : Was able to recognize that it was a question of backtracking.
Step 2 : Created a unordered hashmap to check if any string is part of dictionary or not.
Step 3 : Traverse the string in recursive manner. 
Step 4 : For each prefix, we check if it is part of dictionary or not. If it is part of dictionary then include this prefix string in answer otherwise include the next character in the string.

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 - Intern
2 rounds | 6 problems
Interviewed by Dunzo
994 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Dunzo
924 views
0 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Dunzo
1957 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Dunzo
702 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes