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: Data Structures, JAVA, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 - Practice at least 250 Questions from coding ninjas
Tip 2 - Do some good projects

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume and be confident.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date20 Jul 2019
Coding problem3

There were 3 questions to be solved on hackerrank in 90 minutes.24 students were selected based on this round. Need not solve all the problems completely to get selected as hackerrank gives partial marking even if some testcases are not running in a problem.

1. Distinct Subarrays with at most k odd elements II

Hard
40m average time
60% success
0/120
Asked in companies
ShareChatFlipkart limited

You are given an array “ARR” of N integers. Your task is to find the total number of distinct subarrays of A having at most K odd elements.

Note:
Two subarrays are distinct when they have at least one different element.
Example:
If ARR = [3,2,3], and K = 1 
then there are 4 subarrays with at most K odd elements:
 [3], [3,2], [2,3],[2]
Try solving now

2. Find All Subsets

Moderate
15m average time
90% success
0/80
Asked in companies
Flipkart limitedUnthinkable SolutionsMicrofocus

You are given an array 'arr' of 'N' distinct integers. Your task is to find all the non-empty subsets of the array.


Note: You can return the subsets in any order, you don’t have to specifically sort them.


Example:
arr=[3,4,5]
subsets ={3}, {3,4}, {3,4,5}, {3,5}, {4}, {4,5}, {5}
Try solving now

3. Overlapping Intervals

Easy
24m average time
0/40
Asked in companies
SprinklrAdobeAmazon

You have been given the start and end times of 'N' intervals. Write a function to check if any two intervals overlap with each other.

Note :
If an interval ends at time T and another interval starts at the same time, they are not considered overlapping intervals.
Try solving now
02
Round
Medium
Face to Face
Duration30 minutes
Interview date24 Jul 2029
Coding problem2

The interviewer made it clear in the start that he is going to ask 2 questions and I have 30 minutes to solve both the questions.The interviewer asked me to tell him what I am thinking and was giving hints based on that. 17 were selected after this round.

1. Balanced parentheses

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

Given an integer ‘N’ representing the number of pairs of parentheses, Find all the possible combinations of balanced parentheses with the given number of pairs of parentheses.

Note :

Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.

2. Open brackets must be closed in the correct order.

For Example :

()()()() is a valid parentheses.
)()()( is not a valid parentheses.
Problem approach

consider every bracket and recursively count number of reversals by taking two cases (i) keeping the bracket as it is (ii) reversing the bracket. If we get a balanced expression, we update result if number of steps followed for reaching here is smaller than the minimum so far.

Try solving now

2. City And Bridges

Moderate
50m average time
60% success
0/80
Asked in companies
DunzoPhonePeLinkedIn

Ninja got a map in his hand with ‘N’ cities numbered 0 to ‘N’, connected with bridges. He asks his sister to delete some cities from the map.

He will ask his sister a ‘Q’ query. Each query is denoted by an integer ‘X’, meaning that he will delete the city ‘X’. He wants to see if the new map obtained after deleting the city node will have more connected components than the previous map.

He wants to build the program for the queries given by his sister for the above condition.

Ninja knows that you are a very good programmer and can help him in writing the code for the above. Help Ninja!

Note:

A connected component in the map is the maximum subset of cities that are connected i.e we can go from one city to any other in that subset.
Try solving now
03
Round
Medium
Face to Face
Duration30 minutes
Interview date24 Jul 2019
Coding problem2

The interviewer made it clear in the start that he is going to ask 2 questions and I have 30 minutes to solve both the questions.

1. Convert Sorted Array to BST

Easy
15m average time
85% success
0/40
Asked in companies
WalmartUST GlobalAngel One Wealth

You have been given a sorted array of length ‘N’. You need to construct a balanced binary search tree from the array. If there can be more than one possible tree, then you can return any.

Note:

1. A balanced binary tree is a binary tree structure in which the left and right subtrees of every node differ in height by no more than 1.

2. A binary search tree is a binary tree data structure, with the following properties
    a. The left subtree of any node contains nodes with value less than the node’s value.
    b. The right subtree of any node contains nodes with values equal to or greater than the node’s value.
    c. Right, and left subtrees are also binary search trees.

Example:

Below tree, is a balanced binary search tree

1

Below tree is not a balanced tree as the height of the left subtree and right subtree of node ‘5’ differs by more than 1. Moreover, the tree is also not a BST as node ‘2’ is less than node ‘3’ but ‘2’ is the right child of ‘3’.

1

Try solving now

2. Job Sequencing Problem

Moderate
30m average time
70% success
0/80
Asked in companies
MicrosoftOlaMorgan Stanley

You are given a 'Nx3' 2-D array 'Jobs' describing 'N' jobs where 'Jobs[i][0]' denotes the id of 'i-th' job, 'Jobs[i][1]' denotes the deadline of 'i-th' job, and 'Jobs[i][2]' denotes the profit associated with 'i-th job'.


You will make a particular profit if you complete the job within the deadline associated with it. Each job takes 1 unit of time to be completed, and you can schedule only one job at a particular time.


Return the number of jobs to be done to get maximum profit.


Note :
If a particular job has a deadline 'x', it means that it needs to be completed at any time before 'x'.

Assume that the start time is 0.


For Example :
'N' = 3, Jobs = [[1, 1, 30], [2, 3, 40], [3, 2, 10]].

All the jobs have different deadlines. So we can complete all the jobs.

At time 0-1, Job 1 will complete.
At time 1-2, Job 3 will complete.
At time 2-3, Job 2 will complete.

So our answer is [3 80].
Problem approach

Solution is to generate all subsets of a given set of jobs and check individual subsets for the feasibility of jobs in that subset. Keep track of maximum profit among all feasible subsets.

Try solving now
04
Round
Easy
HR Round
Duration15 minutes
Interview date24 Jul 2019
Coding problem1

First he asked me about my college life, my passion etc. The we discussed my internships in detail. Late he asked my strength, weakness and what is an ideal company to you?

1. Basic HR Questions

He gave me to write a code in Java using OOP.

Later asked me advantages of abstraction and interfaces.

Later he asked me questions like if I give you 1 million dollar where and how will you use it?

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