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: 1 month
Topics: Android Basics, Data Structures, Algorithms, Android jetpack libraries and Dynamic Programming
Tip
Tip

Tip 1 : Go with basics first and then move to advance.
Tip 2 : Practice coding on paper pen
Tip 3 : Do code from scratch to remember the coding syntax

Application process
Where: Referral
Eligibility: 1 year experience in android development
Resume Tip
Resume tip

Tip 1: Highlight projects relevant to job profile
Tip 2: Highlight experience properly

Interview rounds

01
Round
Medium
Video Call
Duration120 mins
Interview date13 Oct 2021
Coding problem1

We had to create an app in which a user can search any movie. Clicking on any one of the movie item, takes user to the details page. Data would be driven from open source api.

1. System Design Question

We had to create an app in which a user can search any movie. Clicking on any one of the movie item, takes user to the details page. Data would be driven from open source api.

Problem approach

I used MVVM architecture along with retrofit library to integrate the api call.

02
Round
Medium
Video Call
Duration60 minutes
Interview date13 Oct 2021
Coding problem3

I was asked to solve three DSA problems and write it's code.

1. Missing Number

Easy
15m average time
85% success
0/40
Asked in companies
GartnerSwiggyAccenture

Given an array ‘a’ of size ‘n’-1 with elements of range 1 to ‘n’. The array does not contain any duplicates. Your task is to find the missing number.


For example:
Input:
'a' = [1, 2, 4, 5], 'n' = 5

Output :
3

Explanation: 3 is the missing value in the range 1 to 5.
Problem approach

I used AP sum formula to find the sum from 1 to N series. Then I minus that number with the given array sum to get the missing number.

Try solving now

2. Cycle Detection in a Singly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
InformaticaUrban Company (UrbanClap)PhonePe

You are given a Singly Linked List of integers. Return true if it has a cycle, else return false.


A cycle occurs when a node's next points back to a previous node in the list.


Example:
In the given linked list, there is a cycle, hence we return true.

Sample Example 1

Problem approach

I used Floyd cycle algorithm

Try solving now

3. LRU Cache Implementation

Moderate
25m average time
65% success
0/80
Asked in companies
CognizantArcesiumCisco

Design and implement a data structure for Least Recently Used (LRU) cache to support the following operations:

1. get(key) - Return the value of the key if the key exists in the cache, otherwise return -1.

2. put(key, value), Insert the value in the cache if the key is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least recently used item before inserting the new item.
You will be given ‘Q’ queries. Each query will belong to one of these two types:
Type 0: for get(key) operation.
Type 1: for put(key, value) operation.
Note :
1. The cache is initialized with a capacity (the maximum number of unique keys it can hold at a time).

2. Access to an item or key is defined as a get or a put operation on the key. The least recently used key is the one with the oldest access time.
Problem approach

I don't remember exactly what was the exact problem statement. So, don't remember how exactly I solved it. But it was definitely related to lru caching.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date13 Oct 2021
Coding problem1

I was asked android basics and 1 system design problem.

1. System Design question

Create an app which exposes some data to contacts app just like WhatsApp, telegram etc.

Problem approach

Tip 1: Architecture should be MVVM
Tip 2: Use Fragments and avoid activity
Tip 3: Content provider will be used here to share some data with contacts app

04
Round
Medium
Video Call
Duration60 minutes
Interview date15 Oct 2021
Coding problem1

This was a manager round.

1. Project based questions

What kind of projects I worked in my internship, what all problems I faced and how I solved it.

Problem approach

Tip 1: Be confident 
Tip 2: Follow STAR approach while answering this.

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
1991 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
1931 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114452 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57718 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34913 views
7 comments
0 upvotes