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 | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Coding, Heap, Tree, Graph, Two Pointer and Database
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.

Application process
Where: Referral
Eligibility: 6.5 CGPA
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 Interview
Duration90 minutes
Interview date12 Jul 2021
Coding problem2

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

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.

Problem approach

It is a very famous problem. I had solved it earlier. So, it was easy to solve

Try solving now

2. House Robber

Moderate
26m average time
0/80
Asked in companies
SamsungAmazonQuikr

f(n)= max( An + f(n-2) , f(n-1) )

This is a recursive formula which we can implement through simple recursion but here the time complexity will be O(2^n). Therefore we will use dynamic programming approach and store the intermediate results in an array.
After calculating we will return the value stored at nth(last) index in array.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date14 Jul 2021
Coding problem2

It was pure DSA Round

1. Reverse A LL

Moderate
30m average time
65% success
0/80
Asked in companies
PhonePeMicrosoftHCL Technologies

You have given a Singly linkedlist. Your task is to reverse that linkedlist with the help of recursion

Problem approach

Used recursion to reverse the linked list

Try solving now

2. Partial BST

Moderate
25m average time
70% success
0/80
Asked in companies
FacebookAmazonMicrosoft

Given a binary tree with N number of nodes, check if that input tree is Partial BST (Binary Search Tree) or not. If yes, return true, return false otherwise.

A binary search tree (BST) is said to be a Partial BST if it follows the following properties.

• The left subtree of a node contains only nodes with data less than and equal to the node’s data.
• The right subtree of a node contains only nodes with data greater than and equal to the node’s data.
• Both the left and right subtrees must also be partial binary search trees.
Example:

Input:

BST1

Answer:

Level 1: 

All the nodes in the left subtree of 4 (2, 1, 3) are smaller 
than 4, all the nodes in the right subtree of the 4 (5) are 
larger than 4.

Level 2 :

For node 2:
All the nodes in the left subtree of 2 (1) are smaller than 
2, all the nodes in the right subtree of the 2 (3) are larger than 2.
For node 5:
The left and right subtree for node 5 is empty.

Level 3:

For node 1:
The left and right subtree for node 1 are empty.
For node 3:
The left and right subtree for node 3 are empty.
Because all the nodes follow the property of a Partial binary 
search tree, the above tree is a Partial binary search tree.
Try solving now
03
Round
Medium
Video Call
Duration40 minutes
Interview date16 Jul 2021
Coding problem2

This Round basically consists from your core Engineering Subjects like networking , OS and DBMS

1. Semaphore problem

A counting semaphore S is initialized to 10. Then, 6 P operations and 4 V operations are performed on S. What is the final value of S?

2. DBMS

  • What is normalization?
  • What are the different normalized forms?
  • What are the Acid Properties?
  • Write the SQL query to get the third maximum salary of an employee from a table named employees.
Problem approach

Tip 1 : Read DBMS concepts carefully

Tip 2 : Practice MySQL Queries

04
Round
Easy
HR Round
Duration20 minutes
Interview date19 Jul 2021
Coding problem1

It was hiring managerial round. Totally focused on Your Soft Skills

1. Basic HR Questions

  • Tell me about yourself
  • What are your hobbies?
  • Tell me one thing that you don't like about Swiggy?
  • What are your strength and weakness?
Problem approach

Tip 1 : Stay Positive

Tip 2 : Show them that you are willing to work with them

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
6857 views
1 comments
0 upvotes
SDE - 1
3 rounds | 10 problems
Interviewed by Swiggy private limited
1529 views
0 comments
0 upvotes
SDE - 1
3 rounds | 4 problems
Interviewed by Swiggy private limited
1944 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
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes