Swiggy private limited interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Swiggy private limited
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 Month
Topics: Machine Coding, Heap, Tree, Graph, Two Pointer
Tip
Tip

Tip 1 : Ist round is machine coding round and that plays crucial role in your selection. Practice as much as you can for this round.
Tip 2 : Do practice for time & space complexities as well
Tip 3 : Do company wise preparation, look for interview experiences and try to map out commonly asked questions and categories of those questions and practice accordingly

Application process
Where: Linkedin
Eligibility: NA
Resume Tip
Resume tip

Tip 1 : Try to maintain single page resume.
Tip 2 : Focus on skills, projects and work experience.

Interview rounds

01
Round
Medium
Online Coding Test
Duration70
Interview date15 Jan 2022
Coding problem2

It was online coding round in which you have to solve 3 problems in approximately 70 minutes,
Timings was flexible, link was accessible upto 2days.

1. Unbounded Knapsack

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

You are given ‘n’ items with certain ‘profit’ and ‘weight’ and a knapsack with weight capacity ‘w’.


You need to fill the knapsack with the items in such a way that you get the maximum profit. You are allowed to take one item multiple times.


Example:
Input: 
'n' = 3, 'w' = 10, 
'profit' = [5, 11, 13]
'weight' = [2, 4, 6]

Output: 27

Explanation:
We can fill the knapsack as:

1 item of weight 6 and 1 item of weight 4.
1 item of weight 6 and 2 items of weight 2.
2 items of weight 4 and 1 item of weight 2.
5 items of weight 2.

The maximum profit will be from case 3 = 11 + 11 + 5 = 27. Therefore maximum profit = 27.


Problem approach

Use DP with memoization to solve this problem.

Try solving now

2. Subarrays With At Most ‘K’ Distinct Values

Moderate
15m average time
85% success
0/80
Asked in companies
Goldman SachsGoogle incVMware Inc

You are given an array ‘ARR’ having ‘N’ integers. You are also given an integer ‘K’. The task is to count the number of subarrays that have ‘K’ distinct values.


Subarray: A consecutive sequence of one or more values taken from an array.


For Example :
‘N’ = 4, ‘K’ = 2
‘ARR’ = [1, 1, 2, 3]

There are ‘3’ subarrays with ‘2’ distinct elements, which are as follows: [1, 2], [2, 3], [1, 1, 2].
Thus, you should return ‘3’ as the answer.
Try solving now
02
Round
Medium
Video Call
Duration120 Minutes
Interview date4 Feb 2022
Coding problem1

It was machine coding round in which I was asked to write working code for SPLITWISE.

1. Machine Coding Question

Design Splitwise

An expense sharing application is where you can add your expenses and split it among different people. The app keeps balances between people as in who owes how much to whom. Example You live with 3 other friends. You: User1 (id: u1)Flatmates: User2 (u2), User3 (u3), User4 (u4)---This month's electricity bill was Rs. 1000.Now you can just go to the app and add that you paid 1000,select all the 4 people and then select split equally .Input: u1 1000 4 u1 u2 u3 u4 EQUAL For this transaction, everyone owes 250 to User1.The app should update the balances in each of the profiles accordingly. User2 owes User1: 250 (0+250)User3 owes User1: 250 (0+250)User4 owes User1: 250 (0+250)

Problem approach

It was 2 hours round,
- I took 15 minutes to clearly understand the problem and discussed it with my interviewer, than I started writing code and I was speaking throughout the interview about whatever I was writing.
- Divide code into classes like have different classes for adding expense, showing expense and adding users;

03
Round
Medium
Video Call
Duration60 Minutes
Interview date9 Feb 2022
Coding problem2

It was pure DSA round.

1. Vertical Order Traversal

Moderate
35m average time
65% success
0/80
Asked in companies
MathworksFreshworksPayPal

The Ultimate Ninja Ankush is a straightforward, no-nonsense guy and loves binary Trees, and he has given you a binary tree, and you have to return the vertical order traversal of the values of the nodes of the given tree.

For each node at position (‘X’, ‘Y’), (‘X’-1, ‘Y’-1) will be its left child position while (‘X’+1, ‘Y’-1) will be the right child position.

Running a vertical line from X = -infinity to X = +infinity, now whenever this vertical line touches some nodes, we need to add those values of the nodes in order starting from top to bottom with the decreasing ‘Y’ coordinates.

Note:
If two nodes have the same position, then the value of the node that is added first will be the value that is on the left side.
For example:
For the binary tree in the image below.

alt text

The vertical order traversal will be {2, 7, 5, 2, 6, 5, 11, 4, 9}.
Try solving now

2. Subsets II

Moderate
45m average time
50% success
0/80
Asked in companies
AmazonFacebookApple

Ninja is observing an array of ‘N’ numbers and wants to make as many unique subsets as possible. Can you help the Ninja to find all the unique subsets?

Note: Two subsets are called same if they have same set of elements.For example {3,4,1} and {1,4,3} are not unique subsets.

You are given an array ‘ARR’ having N elements. Your task is to print all unique subsets.

For Example
For the given if ARR = [1,1,3],the answer will be [ ],[1],[1,1],[1,3],[3],[1,1,3].
Try solving now
04
Round
Easy
HR Round
Duration60 Minutes
Interview date24 Feb 2022
Coding problem1

It was hiring managerial round.

1. Technical Questions

He asked me few behavioural questions and had a good discussions about my projects, dbms, OS and oops concept.

Problem approach

Tip 1 : Prepare for your projects 
Tip 2 : Go through your resume and prepare yourself according to skills, projects and work experience mentioned in your resume
Tip 3 : Be confident.

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
SDE - 1
4 rounds | 9 problems
Interviewed by Swiggy private limited
2430 views
0 comments
0 upvotes
SDE - 1
3 rounds | 4 problems
Interviewed by Swiggy private limited
6858 views
1 comments
0 upvotes
SDE - 1
4 rounds | 7 problems
Interviewed by Swiggy private limited
2002 views
1 comments
0 upvotes
SDE - 1
3 rounds | 10 problems
Interviewed by Swiggy private limited
1529 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