i
Dunzo
Filter interviews by
I appeared for an interview in Jan 2022.
Round duration - 60 Minutes
Round difficulty - Medium
It was strictly a DSA round where 2 coding problems asked from me.
Given a binary matrix MAT
containing only 0s and 1s of size N x M, find the distance of the nearest cell containing 1 for each cell in the matrix.
The dis...
Given a binary matrix, find the distance of the nearest cell having 1 in the matrix for each cell.
Use BFS to traverse the matrix and find the nearest cell having 1 for each cell.
Initialize the output matrix with maximum possible distance.
If the current cell has 1, distance is 0, else update distance based on the nearest cell having 1.
You are provided with an array A
of length N
. Your task is to determine the number of arithmetic subarrays present within the array A
.
An arithmetic s...
Count the number of arithmetic subarrays in an array.
An arithmetic subarray has 3 or more elements with the same difference between consecutive elements.
Loop through the array and check for all possible subarrays with 3 or more elements.
If the difference between consecutive elements is the same, increment the count.
Return the count for each test case.
Round duration - 60 Minutes
Round difficulty - Medium
Again it was a DSA round.
Imagine a two-dimensional grid with 'N' rows and 'M' columns, where each cell contains a certain number of coins. Alice and Bob want to maximize the total number of coins ...
Given a matrix of coins, Alice and Bob have to collect maximum coins with certain conditions.
Alice starts from top left corner and Bob starts from top right corner
They can move to (i+1, j+1) or (i+1, j-1) or (i+1, j)
They have to collect all the coins that are present at a cell
If Alice has already collected coins of a cell, then Bob gets no coins if goes through that cell again
Tip 1 : Read last year interview experiences of the company you apply for.
Tip 2 : In the last 2-3 days before your interview, just revise your concepts and problems.
Tip 1 : Keep it simple and clean. Don't make it flashy.
Tip 2 : Highlight your experiences and projects.
Top trending discussions
I appeared for an interview in Nov 2020.
Round duration - 50 minutes
Round difficulty - Easy
Mcq Questions
Round duration - 10 Minutes
Round difficulty - Easy
It was very difficult they go in depth of everything
Given a binary tree consisting of 'N' nodes with distinct integer values, transform it into a Binary Search Tree (BST) while maintaining the original structure of th...
Transform a binary tree into a Binary Search Tree (BST) while maintaining the original structure.
Implement a function to transform the binary tree into a BST by rearranging the nodes based on BST rules.
Maintain the original structure of the binary tree while converting it into a BST.
Ensure that nodes in the left subtree hold values less than the node's value, and nodes in the right subtree hold values greater than the ...
Tip 1 : Do atleast 2 projects
Tip 3 : Practice Atleast 250 Questions
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
I appeared for an interview in Jan 2021.
Round duration - 60 Minutes
Round difficulty - Easy
4 Questions which were of Easy, Medium, and Hard level.
The structure of a binary tree has been modified so that each node includes a reference to its parent node.
You are provided with two nodes,...
This question is about finding the lowest common ancestor of two nodes in a binary tree with parent references.
Traverse from the given nodes to their respective root nodes and store the paths in two separate lists.
Compare the two lists and find the last common node.
Return the last common node as the lowest common ancestor.
Ninja has been given an array, and he wants to find a subarray such that the sum of all elements in the subarray is maximum.
A subarray 'A' is considered greater than a...
The problem is to find a subarray with the maximum sum in a given array.
Iterate through the array and keep track of the maximum sum and the current sum.
If the current sum becomes negative, reset it to 0.
Update the maximum sum if the current sum is greater.
Also keep track of the start and end indices of the subarray with the maximum sum.
Return the subarray using the start and end indices.
Round duration - 50 Minutes
Round difficulty - Easy
Given a list of integers of size N
, your task is to determine the Next Greater Element (NGE) for every element. The Next Greater Element for an element X
is the firs...
The task is to find the next greater element for each element in an array.
Iterate through the array from right to left.
Use a stack to keep track of the elements that have a greater element to their right.
For each element, pop elements from the stack until a greater element is found or the stack is empty.
If a greater element is found, it is the next greater element for the current element.
If the stack becomes empty, the...
You are given a long type array/list ARR
of size N
, representing an elevation map. The value ARR[i]
denotes the elevation of the ith
bar. Your task is to determine th...
The question asks to find the total amount of rainwater that can be trapped in the given elevation map.
Iterate through the array and find the maximum height on the left and right side of each bar.
Calculate the amount of water that can be trapped at each bar by taking the minimum of the maximum heights on both sides and subtracting the height of the bar.
Sum up the amount of water trapped at each bar to get the total amo...
Round duration - 30 Minutes
Round difficulty - Easy
It is just a formality round, asked basic questions like relocation and joining date etc
Tip 1 : Be good with all data structures and algorithms
Tip 2 : Able to explain your projects well
Tip 3 : focus on basics
Tip 1 : Try to make a single-page resume.
Tip 2 : Don't write unnecessary details like hobbies, family, etc.
I applied via Instahyre and was interviewed in Nov 2024. There were 2 interview rounds.
Easy to medium questions, Questions on DSA and Node.js.
The three sum problem involves finding unique triplets in an array that sum to zero.
Sort the array to simplify finding triplets.
Use a loop to fix one element and apply two-pointer technique for the rest.
Skip duplicates to ensure unique triplets.
Example: For array [-1, 0, 1, 2, -1, -4], the triplets are [-1, -1, 2], [-1, 0, 1].
I appeared for an interview before Jul 2024, where I was asked the following questions.
Rearranging an array to place negative and positive numbers at even and odd indices respectively.
1. Iterate through the array and separate positive and negative numbers.
2. Create a new array of the same length to hold the rearranged elements.
3. Place negative numbers at even indices (0, 2, 4,...) and positive numbers at odd indices (1, 3, 5,...).
4. If there are more positives than negatives, fill remaining odd indices ...
To find the second highest salary, we can use various methods like sorting or using a set to eliminate duplicates.
Use a set to store unique salaries, then convert it to a list and sort it.
Example: salaries = [3000, 2000, 4000, 4000]; unique_salaries = set(salaries) -> [2000, 3000, 4000].
After sorting, the second highest can be accessed by index -2.
Alternatively, iterate through the list while keeping track of the hi...
I appeared for an interview in Apr 2021.
Round duration - 60 minutes
Round difficulty - Easy
The round consisted of 2 coding Problems and it lasted for 60 minutes from 12:00 PM to 1:00 PM on Hackerearth.
Use of other IDEs was prohibited and video was on.
You are provided with two strings A
and B
. Your task is to find the index of the first occurrence of A
within B
. If A
is not found in B
, return -1.
A = "bc", ...
Implement a function to find the index of the first occurrence of one string within another string.
Iterate through the second string and check if a substring of the same length as the first string matches the first string.
Return the index of the first occurrence of the first string within the second string, or -1 if not found.
Handle edge cases like empty strings or when the first string is longer than the second string...
Given a sorted array that has been rotated clockwise by an unknown amount, you need to answer Q
queries. Each query is represented by an integer Q[i]
, and you must ...
Search for integers in a rotated sorted array efficiently.
Implement binary search to find the target integer in the rotated array.
Handle the rotation by checking which side of the array is sorted before performing binary search.
Return the index of the target integer if found, else return -1.
Time complexity of O(logN) is required for each query.
Round duration - 60 minutes
Round difficulty - Medium
The round was conducted on Google Meet with 2 interviewers . They were friendly and helpful.
The timing was 12:00 to 1:00 PM.
Our Video was on .
You are given a string 'S' of length 'N' which may include duplicate alphabets. Your goal is to calculate the number of distinct subsequences in the string.
Calculate the number of distinct subsequences in a string with possible duplicates.
Use dynamic programming to keep track of the count of distinct subsequences for each character in the string.
Consider the cases where the current character is included or excluded in the subsequence.
Handle duplicates by considering the previous occurrence of the character.
Return the count of distinct subsequences modulo 10^9 + 7.
Round duration - 60 minutes
Round difficulty - Easy
This was a Behavioral Round. It lasted for 45-50 minutes. It consisted of a discussion on my projects. The interviewer was very impressed by the way I explained my projects. She even appreciated me for that. This was followed by normal HR questions .Timing of This round was 4:00 PM to 5:00 PM
Tip 1 : I prepared all topics from my Coding Ninjas Course - Competitive Programming
Tip 2 : I practiced 300+ questions on CodeZen ( Coding Ninjas Platform), LeetCode, InterviewBit
Tip 3 : I took part in contests on CodeForces.
Tip 4 : Apart from Data Structures and Algorithms , I also studied DBMS, OOPs and other course subjects
Tip 1 : Keep Resume up to date for the role you are applying.
Tip 2 : Mention atleast 1 project or past work experience.
Tip 3 : Try to keep a 1 pager resume.
In test I had to solve 3 dsa questions in 1 hour
I applied via Campus Placement and was interviewed in Jul 2024. There were 4 interview rounds.
It was a coding round where i need to solve 3 DSA Questions in 1.5 hour
Design a society security system using appropriate design patterns and provide pseudocode for implementation.
Use the Singleton pattern for a central security manager to ensure only one instance handles security.
Implement Observer pattern for notifying residents about security alerts.
Use Factory pattern to create different types of security devices (cameras, alarms).
Consider using Strategy pattern for different security...
I appeared for an interview before Jun 2024, where I was asked the following questions.
I applied via Referral and was interviewed in Mar 2024. There were 3 interview rounds.
There were 2 questions.
1. Knapsack
2. Median in an array
Design a low-level architecture for a video conferencing tool like Google Meet, focusing on key components and interactions.
User Authentication: Implement OAuth for secure login.
Video Streaming: Use WebRTC for real-time video and audio communication.
User Interface: Design a responsive UI with React for seamless user experience.
Chat Functionality: Integrate a chat feature using WebSockets for real-time messaging.
Screen ...
based on 5 reviews
Rating in categories
Store Manager
109
salaries
| ₹3.8 L/yr - ₹7 L/yr |
Community Operations Specialist
100
salaries
| ₹2.7 L/yr - ₹4.3 L/yr |
Procurement Manager
96
salaries
| ₹3.5 L/yr - ₹7 L/yr |
Inward Executive
93
salaries
| ₹1.8 L/yr - ₹3.5 L/yr |
Delivery Boy
89
salaries
| ₹1.5 L/yr - ₹4.5 L/yr |
Swiggy
Zepto
Porter
Rapido