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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Data Structure, Algorithms, Object Oriented Programming, Computer Networks, DBMS
Tip
Tip

Tip 1 : Be consistent.
Tip 2 : For DSA try to solve a good mix of medium and hard level problems

Application process
Where: Company Website
Resume Tip
Resume tip

Tip 1 : Try to align your resume with contents mentioned in Job description of position you are applying to
Tip 2 : Keep it to the point. Don't give too much description. Mentions in points if needed.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date8 May 2021
Coding problem1

There were 3 DSA questions, 2 medium and 1 hard. Enough time was given to solve all the three questions. All test cases passed.

1. Ninja And Stops

Hard
45m average time
55% success
0/120
Asked in companies
FreshworksFlipkart limited

Ninja wants to travel from his house to a given destination, which is ‘X’ miles from his house. Along the way, he needs to fill gas in his vehicle. He knows there are ‘Y’ stations in his way. He also knows the distance between the station and his house, and how many liters of gas that particular station has.

Ninja starts his journey, with an infinite capacity of the tank filled with ‘Z’ liters of starting fuel. Suppose his vehicle uses 1 liter of gas for every mile, and ninja can stop at any gas station, transfer all the available gas at that station and then move ahead.

Now, you need to find out what is the minimum number of stops Ninja must make to reach his desired destination.

Note:
Note that if Ninja reaches a particular stop with no fuel, it can still fill his tank at that stop and continue his journey ahead. Similarly, if he reaches his destination with no fuel, it is still considered to have arrived.
For example :
Given X = 10, Y = 4, ARR[Y] = {[1, 6], [2, 3], [3, 3], [6, 4]} and Z = 1
So the path followed in this case would look like this:

Ninja starts with 1L of gas. 
Drives to the first gas station at position 1, using 1L of gas, then refueling with 6L of gas.
Then, drive to position 6, using 5L of gas, then refueling 4L in the current 1L of gas, making it a total of 5L of gas.
Finally, drive to the destination consuming 4L of gas.
So, Ninja made 2 refueling stops before reaching the destination. So, you need to print 2. 
Problem approach

Used max heap to keep track of the maximum amount of refill that can be taken after reaching petrol stations. Whenever need to refill would require would pop up from heap and reinitialise the tank capacity of car.

Try solving now
02
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date28 May 2022
Coding problem1

Data Structure and Algorithms
2 questions + a follow up question as time was left

1. Allocate Books

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

Given an array ‘arr’ of integer numbers, ‘arr[i]’ represents the number of pages in the ‘i-th’ book.


There are ‘m’ number of students, and the task is to allocate all the books to the students.


Allocate books in such a way that:

1. Each student gets at least one book.
2. Each book should be allocated to only one student.
3. Book allocation should be in a contiguous manner.


You have to allocate the book to ‘m’ students such that the maximum number of pages assigned to a student is minimum.


If the allocation of books is not possible, return -1.


Example:
Input: ‘n’ = 4 ‘m’ = 2 
‘arr’ = [12, 34, 67, 90]

Output: 113

Explanation: All possible ways to allocate the ‘4’ books to '2' students are:

12 | 34, 67, 90 - the sum of all the pages of books allocated to student 1 is ‘12’, and student two is ‘34+ 67+ 90 = 191’, so the maximum is ‘max(12, 191)= 191’.

12, 34 | 67, 90 - the sum of all the pages of books allocated to student 1 is ‘12+ 34 = 46’, and student two is ‘67+ 90 = 157’, so the maximum is ‘max(46, 157)= 157’.

12, 34, 67 | 90 - the sum of all the pages of books allocated to student 1 is ‘12+ 34 +67 = 113’, and student two is ‘90’, so the maximum is ‘max(113, 90)= 113’.

We are getting the minimum in the last case.

Hence answer is ‘113’.
Problem approach

Used binary search between books with minimum number of pages and total pages in all books (in case only one student is there). Then using BS searched for a minimum value where all would get to read atleast one book.

Try solving now
03
Round
Hard
Online Coding Interview
Duration60 minutes
Interview date8 Jul 2021
Coding problem1

Some hard and some Intermediate Data Structure and Algorithms problems were asked.

1. Trie Implementation

Moderate
25m average time
65% success
0/80
Asked in companies
MicrosoftMedia.netDunzo

Implement a Trie Data Structure which supports the following two operations:

Operation 1 - insert(word) - To insert a string WORD in the Trie.
Operation 2-  search(word) - To check if a string WORD is present in Trie or not.
Problem approach

Wrote a recursive solution to backtrack to upper levels. And DFS/BFS to travel to lower levels. Questions were asked around why choose DFS/ BFS.

Try solving now
04
Round
Easy
HR Round
Duration60 minutes
Interview date17 Aug 2022
Coding problem1

This was a hiring manager round and my resume was discussed.

1. Basic HR Questions

Tell me about yourself.

What are your greatest strengths and weaknesses?

Why should we hire you?

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
1719 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