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

SDE - 1

Swiggy
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Started Data Structures and Algorithms from coding ninjas and after 2 months I started feeling a little confident in solving problems. Then I started applying to multiple companies and got selected.
Application story
I saw the opening at Swiggy from a LinkedIn post and asked for a referral from my LinkedIn connection.
Why selected/rejected for the role?
1. The problem-solving round went well. 2. The system design round was also quite average. Since I applied for a backend profile, the major focus was on problem-solving approaches and how I approached the design questions. These two rounds helped me clear the interview.
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, System Design, OOPs concept, DBMS, Operating System, LLD, Dynamic Programming.
Tip
Tip

Tip 1: For data structures, either start with competitive coding.

Tip 2: Participate in different coding contests and hackathons.

Tip 3: Try to solve the problem once before viewing the solution. It is recommended to see all the optimized solutions even after solving the question.

Tip 4: Refer to various channels for low-level design.

Tip 5: Do at least one project that will be reflected on your resume.

Application process
Where: Campus
Eligibility: No criteria as such.
Resume Tip
Resume tip

Tip 1: Always be prepared to discuss everything mentioned on your resume.

Tip 2: Include at least two relevant projects on your resume.

Tip 3: Include your competitive coding profiles on your resume.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 Minutes
Interview date19 Nov 2021
Coding problem1

A HackerRank coding link was received via email, which has an expiration of 7 days. You can attempt the test at any time before it expires.

1. Ninja Ant

Moderate
30m average time
70% success
0/80
Asked in companies
AmazonSwiggyD.E.Shaw

You are given a matrix 'MAT' with ‘N’ rows and ‘N’ columns, and an ant is initially sitting on a coordinate given to you. The ant moves in an interesting way. If the ith row and jth column value are 1, it rotates 90 degrees in the right direction and moves 1 step forward. If the value at the ith row and jth column are 0, it rotates 90 degrees in the left direction and moves 1 step forward.

Your task is to find the final coordinates of the ant.

Note:

The ant initially faces toward the east side. Every time an ant moves from a block, it inverts it, i.e., changes 0 to 1 and 1 to 0.

If the ant exits the matrix just return -1,-1.

For example,

If ‘N’ = 2    
mat[2][2] = {{1, 1},
             {0, 0}}
startingRow = 0 , startingColumn = 0
moves = 1
The ant is initially facing the east side, it will take a right turn and move 1 stop in the south.    
The output will be 1 0.
Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date23 Nov 2021
Coding problem2

The interview was around 4 PM and conducted one-on-one. It mostly focused on problem-solving, and the interviewer was very helpful.

1. Minimum steps to reach target by a Knight

Moderate
25m average time
60% success
0/80
Asked in companies
MicrosoftIntuitSwiggy

You have been given a square chessboard of size ‘N x N’. The position coordinates of the Knight and the position coordinates of the target are also given.

Your task is to find out the minimum steps a Knight will take to reach the target position.

alt text

Example:
knightPosition: {3,4}
targetPosition: {2,1}

alt text

The knight can move from position (3,4) to positions (1,3), (2,2) and (4,2). Position (4,2) is selected and the ‘stepCount’ becomes 1. From position (4,2), the knight can directly jump to the position (2,1) which is the target point and ‘stepCount’ becomes 2 which is the final answer. 

Note:

1. The coordinates are 1 indexed. So, the bottom left square is (1,1) and the top right square is (N, N).

2. The knight can make 8 possible moves as given in figure 1.

3. A Knight moves 2 squares in one direction and 1 square in the perpendicular direction (or vice-versa).
Try solving now

2. Minimum Jumps

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

Bob lives with his wife in a city named Berland. Bob is a good husband, so he goes out with his wife every Friday to ‘Arcade’ mall.

‘Arcade’ is a very famous mall in Berland. It has a very unique transportation method between shops. Since the shops in the mall are laying in a straight line, you can jump on a very advanced trampoline from the shop i, and land in any shop between (i) to (i + Arr[i]), where Arr[i] is a constant given for each shop.

There are N shops in the mall, numbered from 0 to N-1. Bob's wife starts her shopping journey from shop 0 and ends it in shop N-1. As the mall is very crowded on Fridays, unfortunately, Bob gets lost from his wife. So he wants to know, what is the minimum number of trampoline jumps from shop 0 he has to make in order to reach shop N-1 and see his wife again. If it is impossible to reach the last shop, return -1.

Try solving now
03
Round
Easy
Video Call
Duration120 Minutes
Interview date26 Nov 2021
Coding problem1

1. System Design Question

How to design Splitwise?

Problem approach

Tip 1: Collect more and more information from the interviewer. 
Tip 2: Try to start building with basic functionality and at the same time start writing the entity. Always think loud, so that the interviewer can also know what you are thinking, and even can help you. 
Tip 3: Firstly try to wrap the basic functionality, rather than deep dive into complex features.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

To make an AI less repetitive in a long paragraph, you should increase:

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 9 problems
Interviewed by Swiggy
2419 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 7 problems
Interviewed by Swiggy
1992 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 10 problems
Interviewed by Swiggy
1516 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Swiggy
1667 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114453 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57719 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34914 views
7 comments
0 upvotes