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

SDE - 1

Flipkart limited
upvote
share-icon
4 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: DSA, OOPS, Computer Networks, Operating System, Puzzles
Tip
Tip

Tip 1 : For Product based companies doing DSA is sufficient, But sometimes in the last round which is generally the Hiring manager round they can ask Core subjects as well so knowing core subjects like OOPS, CN, OS can be a plus point
Tip 2 : Practice as much DSA as possible.
Tip 3 : While solving a question make sure you know both the brute force and the optimal solution as directly giving the optimal solution to the interviewer can make a false impression that you already knew the question.

Application process
Where: Company Website
Resume Tip
Resume tip

Tip 1 : Have a very detailed experience section as most recruiters read that section only. If you do not have experience add some big projects and clearly mention the tech stack used and any impact made by the project (for eg the app was used by 1000+ users.).
Tip 2 : Add open source contributions and hackathons won if any.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date8 Apr 2021
Coding problem3

- Three coding questions need to be solved in 1.5 hrs. (from 7 pm to 8:30 pm)
- 2 questions were of easy difficulty and one hard.

1. Sort Array

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

You are given an array consisting of 'N' positive integers where each integer is either 0 or 1 or 2. Your task is to sort the given array in non-decreasing order.

Note :
1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.
Problem approach

Solved using the sort function two times.
and in second time passing the custom comparator to sort the last part in decreasing order.
eg : 
sort(arr.begin(),arr.begin()+k);
sort(arr.begin()+k,arr.end,greater());

Try solving now

2. Common Elements

Moderate
35m average time
70% success
0/80
Asked in companies
SAP LabsWalmartFlipkart limited

Given two 1-dimensional arrays containing strings of lowercase alphabets, print the elements that are common in both the arrays i.e. the strings that are present in both the arrays.

Note:
An element of one array can be mapped only to one element of the array. For example :

Array 1 = {“ab”, “dc”, “ab”, “ab”}
Array 2 = {“dc”, “ab”, “ab”} 

The common elements for the above example will be “dc”, “ab”, and “ab”. 
Try solving now

3. Cherry Biscuit

Easy
10m average time
90% success
0/40
Asked in company
Flipkart limited

Ninja loves cherry biscuits. He brings a packet of biscuits from a shop which contains ‘N’ biscuits. The number of cherries present in each biscuit is given in an array ‘A’.

Ninja likes a biscuit only if the number of cherries in that biscuit is strictly greater than ‘K’.

Can you tell the number of biscuits Ninja likes?

Example :
N = 3 
K = 5
A = [ 1, 6, 7 ]

Biscuit 1 : Since there is only 1 cherry in this biscuit which is not greater than ‘K’, Ninja doesn’t like this biscuit.

Biscuit 2 : Since there are 6 cherries in this biscuit which is greater than ‘K’, Ninja likes this biscuit.

Biscuit 3 : Since there are 7 cherries in this biscuit which is greater than ‘K’, Ninja likes this biscuit.

Hence, Ninja likes 2 biscuits from this packet.
Problem approach

Instead of having two paths starting from 0,0 and then other path from N,N. 
We can have two people starting from 0,0 and find two paths that collects maximum cherries.
First person finds the path to collect maximum cherries and mark those cherries collected then
Second person finds another path to collect maximum cherries. 
Used recursive + Memo approach to solve this.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date27 Jul 2021
Coding problem2

Face to face technical interview 1 (5pm : 60 mins)

1. Maximum meetings

Easy
10m average time
90% success
0/40
Asked in companies
AmazonMicrosoftMakeMyTrip

You are given the schedule of 'N' meetings with their start time 'Start[i]' and end time 'End[i]'.


You have only 1 meeting room. So, you need to return the maximum number of meetings you can organize.


Note:
The start time of one chosen meeting can’t be equal to the end time of the other chosen meeting.


For example:
'N' = 3, Start = [1, 3, 6], End = [4, 8, 7].

You can organize a maximum of 2 meetings. Meeting number 1 from 1 to 4, Meeting number 3 from 6 to 7.
Problem approach

Make two arrays for start time and end time.
Sort them.
Use two pointers to iterator start array and end array and calculate the max number of rooms required at any instance
Time : O(nlogn)

Try solving now

2. Cousins of Given Node in Binary Tree

Moderate
10m average time
90% success
0/80
Asked in companies
AmazonSamsungIBM

Given a binary tree of N nodes and a node of this tree, you need to return a list containing the values of the cousins of the given node in the given binary tree sorted by non-decreasing order of their values.

Note:
Two nodes of a binary tree are cousins if they have the same depth or level, but have different parents.

No two nodes in the given binary tree will have the same data values.
Example :

Example Of Cousins

Problem approach

Calculate the depth and parent of both the nodes using DFS (in one go).
finally check parentof1!= parentof2 and depth is same

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date29 Jul 2021
Coding problem1

Face to face technical interview 2 (4pm : 60 mins)

1. Course Schedule

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

You are a student of Netaji Subhas Institute of Technology. You have to take ‘N’ number of courses labelled from 1 to N to complete your B.Tech Degree.

Some courses may have prerequisites, for example, to take course 1 you have to first take course 2, which is expressed as a pair: [1, 2]. Now, your task is to find is it possible for you to finish all courses.

Note: There are no duplicate pairs in the prerequisites array.

For example-
If N = 2 and prerequisite = [[1, 2]]. Then, there are a total of 2 courses you need to take. To take course 1 you need to finish course 2. So, it is possible to complete all courses. 
Problem approach

Used topological sort to check if it is possible or not.
Used bfs to traverse the graph and at the end if all the vertices were visited return true

Try solving now
04
Round
Medium
HR Round
Duration75 minutes
Interview date2 Aug 2021
Coding problem2

Hiring manager round.

1. Basic HR Questions

  • Introduce yourself
  • Challenges faced, things learned in previous work experience
  • Describe your project

2. OS Question

Define Paging

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
SDE - 1
3 rounds | 10 problems
Interviewed by Flipkart limited
2634 views
0 comments
0 upvotes
SDE - 1
3 rounds | 7 problems
Interviewed by Flipkart limited
1189 views
0 comments
0 upvotes
SDE - 1
3 rounds | 3 problems
Interviewed by Flipkart limited
1718 views
0 comments
0 upvotes
SDE - 1
3 rounds | 4 problems
Interviewed by Flipkart limited
2198 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes