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

SDE - 1

Swiggy
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Algorithms, Low-level Design, OOPS, OS, High-level-design (basics)
Tip
Tip

Tip 1: Mentally prepare yourself to practice every day for some dedicated time.
Tip 2: Practise Leetcode questions randomly don't check the difficulty or the topic it will help to set up the same mentality that is required during the interview. 
Tip 3: Design and code a lot of LLD questions without help and make sure to get it reviewed with any of your friends/Seniors/Colleagues this will help to improve your design. Also, feel free to check some good solutions that are posted online to learn from them.

Application process
Where: Referral
Eligibility: No Criteria
Resume Tip
Resume tip

Tip 1 : Must have some good projects on not something that is easily available on the web and just recreate that again.
Tip 2 : It should not be more than 1 page and keep it detailed and clean without unnecessary jargon.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 mins
Interview date29 Aug 2021
Coding problem3

Timing: 24 hr window to start the test anytime

1. Count Distinct Subarrays With At Most K Odd Elements

Moderate
10m average time
90% success
0/80
Asked in companies
SwiggyBNY MellonJio Platforms Limited

You are given an array 'arr' of 'N' integers. Your task is to return the total number of distinct subarrays of 'arr' having 'k' odd elements.


Example :
If arr = [3,2,3], and k = 1 
then there are 4 subarrays with 1 odd elements:
[3], [3,2], [2,3] & [3].
Problem approach

Brute Force using hashing

Try solving now

2. Ways To Reach Goal

Moderate
40m average time
50% success
0/80
Asked in companies
ShareChatCultfitSwiggy

A virus travels on a positive number line with a range from 0 to ‘R’ in which it can travel only in the left or right direction. You are given a string ‘PATH’ representing the sequence of moves a virus can move. Your task is to find the number of distinct subsequences of those moves that lead from a given point ‘X’ to point ‘Y’ on the number line. If a virus is present at position ‘P’, then moving in the ‘l’ direction will take it to the ‘P’ - 1 position, whereas moving in the ‘r’ direction will take it to the ‘P’ + 1 position.

Note:
Subsequences are created by deleting 0 or more characters from a sequence without changing the order.
Example:
Let ‘PATH’ be: "rrr"
Let ‘X’ = 1, ‘Y’ = 2, and ‘R’ = 10
Paths are ["r", "r", "r"]. As we have to choose distinct subsequences, so the result is 1.
Problem approach

Dynamic Prgramming

Try solving now

3. Fractional Knapsack

Easy
15m average time
85% success
0/40
Asked in companies
MicrosoftSwiggyTata 1mg

You have been given weights and values of ‘N’ items. You are also given a knapsack of size ‘W’.

Your task is to put the items in the knapsack such that the total value of items in the knapsack is maximum.

Note:
You are allowed to break the items.
Example:
If 'N = 4' and 'W = 10'. The weights and values of items are weights = [6, 1, 5, 3] and values = [3, 6, 1, 4]. 
Then the best way to fill the knapsack is to choose items with weight 6, 1 and  3. The total value of knapsack = 3 + 6 + 4 = 13.00   
Problem approach

Dynamic Programming

Try solving now
02
Round
Hard
Video Call
Duration180 mins
Interview date29 Aug 2021
Coding problem1

Machine Coding Round.
The interviewer was very helpful.

1. System Design question

Design and code multilevel parking lot system.

Problem approach

Tip 1: Learn design patterns
Tip 2: Practice and design a lot of questions.
Tip 3: Do take feedback of your code from others

03
Round
Hard
Video Call
Duration60 mins
Interview date29 Aug 2021
Coding problem1

1 hour.

1. Rotting Oranges

Moderate
30m average time
85% success
0/80
Asked in companies
SwiggyAmazonSoroco
You are given an integer grid of size ‘N’x’M’, and the cell of the grid contains either of the three values:

  • 0 - An empty cell.
  • 1 - A fresh orange.
  • 2 - A rotten orange.
  • Every minute, any fresh orange adjacent(4-directionally) to a rotten orange becomes rotten.

    You must return the minimum time after which no fresh oranges are left. Return -1 if it's impossible to rot all the fresh oranges.

    Example:
    Input: [[2,1,1],[1,1,0],[0,0,0]]
    
    Output: 2
    
    At T=0, only orange at (0,0) is rotten.
    At T=1, oranges at (0,0),(0,1) and (1,0) are rotten.
    At T=2, oranges at (0,0),(0,1),(1,0),(0,2) and (1,1) are rotten. 
    No fresh oranges are left after T=2.
    
    Problem approach

    Solved using BFS.
    A lot of follow-up questions were asked on this.

    Try solving now
    04
    Round
    Easy
    HR Round
    Duration60 mins
    Interview date29 Aug 2021
    Coding problem1

    Hiring Manager Round.
    Interviewer was super cool

    1. Basic HR Questions

    Discussed on previous rounds. Past company work. Few DS questions on the last round.

    Problem approach

    Tip 1: Be Interactive
    Tip 2: Ask good questions
    Tip 3: Understand about the work you will be doing.

    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
    2420 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
    1517 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 4 problems
    Interviewed by Swiggy
    1932 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