Dunzo Coding Questions and Answers

Coding Questions asked in Dunzo with Solutions

Your understanding of the coding portion of the Dunzo recruitment campaign will be aided by the Dunzo Coding Questions and Answers on this page. It is an elimination round and has a significant weight.

Learn everything on this page concerning Dunzo hiring practises and coding inquiries. You’ll learn in-depth details about the Dunzo Recruiting Process, Eligibility Requirements, and Pay Structure.

Dunzo Coding Questions

About Dunzo

Team Dunzo is passionate about using technology to improve the accessibility and convenience of the communities where theywere raised. They’re passionate about what matters to you, whether that’s giving our users back time to do the things they love, giving our partners flexible earning possibilities, or growing the businesses of their merchants.

Recruitment Process at Dunzo

Below is a detailed description of the hiring procedure for the position of Software Engineer- Backend INTERN at Dunzo.

  • Online Coding
  • Problem Solving Data Structures 1
  • Problem Solving Data Structures 2/ Live Coding
  • Culture Fitment

We have even tabulated some more information for your reference and understanding.

Bosch Global Software TechnologiesRelated Information
Batch2023
CourseB.Tech CSE IT ECE
RoleSoftware Engineer- Backend Intern
Type of HiringInternship
Internship Duration6 months
PlatformHackerRank
StipendINR 50K/-
Required SkillsPython/Django, Go, Nodejs, Postgres, Mongo, Spark, Elastic-Search, Redis, Kafka, Kubernetes

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Dunzo Coding Questions and Answers

Question 1 : Minimum Occurrence (R->Medium)

Problem Statement :

Given a sting , return the character that appears the minimum number of times in the string. The string will contain only ascii characters, from the ranges (“a”-”z”,”A”-”Z”,0-9), and case matters . If there is a tie in the minimum number of times a character appears in the string return the character that appears first in the string.

Input Format :
Single line with no space denoting the input string.

Output Format :
Single character denoting the least frequent character.

Constraints :
Length of string <=10^6

Sample Input :
cdadcda

Sample Output :
c

Explanation :
C and A both are with minimum frequency. So c is the answer because it comes first with less index.

Question 2 :Duplicates

Problem Statement  :

The principal has a problem with repetitions. Everytime someone sends the same email twice he becomes angry and starts yelling. His personal assistant filters the mails so that all the unique mails are sent only once, and if there is someone sending the same mail again and again, he deletes them. Write a program which will see the list of roll numbers of the student and find how many emails are to be deleted.

Sample Input:
6
1
3
3
4
3
3

Sample Output:
3

Question 3 : Last student’s ID (R->Medium+)

Problem Statement  :

There is an id code that is supposed to be given to all the aspirants of an exam. It is actually a substring of a given string. That means, the authority takes a string and then assigns all the unique substrings to all the students. Suppose there is a string “abcde”, so the ids of the students will be “a”,”b”,”c”,”d”,”e”,’ab”,”abc”,”abcd”,”abcde”,”bc”,”bcd”,”bcde”,”cd”,”cde”,”de”.

The students are standing in a line according to the lexicographic order of their given ids. You have to find out the id of the last student for the given input string from which the ids are generated.

Input Format:
Single line with the id generating string
Output format:
The last id as per lexicographical order

Constraints:
Number of characters in the string<=10^9

Sample Input:
abdc

Sample output:
dc

Explanation:
The last student will be with the id dc. The order will be
abdc
a
ab
abd
abdc
b
bd
bdc
c
d
dc

Question 4 : Array Subarray

Problem Statement  :

You are given an array, You have to choose a contiguous subarray of length ‘k’, and find the minimum of that segment, return the maximum of those minimums.
Sample input 0 :
1 → Length of segment x =1
5 → size of space n = 5
1 → space = [ 1,2,3,1,2]
2
3
1
2

Sample output :
3
Explanation :
The subarrays of size x = 1 are [1],[2],[3],[1], and [2],Because each subarray only contains 1 element, each value is minimal with respect to the subarray it is in. The maximum of these values is 3. Therefore, the answer is 3

Question 5 : Coin Game (R->Medium)

Problem Statement  :

Raman was playing a game, he starts with x coins. Now in every step, he wins and loses and he has to get the money or pay the money as needed. He came in contact with a psychic who can see the future and the Psychic predicted the outcomes after each step. Now Raman wants to start the game with the minimum wage where he doesn’t run out of money. Help Raman to find what money he should start with. The only rule to keep playing is not going in a credit situation.

Input Format:

First line with n, number of steps in the game
Next n lines, n integers denoting outcomes of every game. Positive means winning and negative means losing that money.

Output Format:

One single integer denoting the minimum amount to start with

Constraints:

Number of steps<=10^9
-1000<=Money needed in each step<=1000

Sample Input:

4
2
-9
15
2

Sample Output:

7

Explanation:

If he starts with 7 rupees, then after steps : 7 ->9 -> 0-> 15 -> 17.

FAQs on Dunzo Coding Questions with Solutions

Question 1: What type of coding questions are asked in Dunzo?

Dunzo asks moderate to high level questions in their placement exam. This includes questions on DSA and competitive coding.

Question 2: Is the Dunzo exam difficult?

Dunzo exam is tough to crack as the questions asked are of an advanced level. Therefore, without proper practice and knowledge you cannot clear this exam.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription