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

SDE - Intern

Flipkart
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Tree, Graph, Linked List, Stack, Queue, Array, String, Dynamic Programming, Backtracking, Binary Search.
Tip
Tip

Tip 1 : Practice More and More
Tip 2 : Focus on the quality of questions rather than the quantity
Tip 3 : Use pen and paper while doing practice and learn to dry run the code.

Application process
Where: Other
Eligibility: second year engineering student
Resume Tip
Resume tip

Tip 1 : Have some projects on your resume
Tip 2 : Do not put false things on your resume

Interview rounds

01
Round
Medium
Online Coding Interview
Duration30 minutes
Interview date30 Apr 2021
Coding problem0

The round was conducted on D2C platform.
The timing was between 2pm to 4pm.
The test duration was 30 mins.
There was no negative marking.

It was an MCQ round.

02
Round
Easy
Face to Face
Duration50 minutes
Interview date28 May 2022
Coding problem3

It was a face-2-face coding round.
The time of the interview was 3 pm.
The interviewer was very kind and supportive.

1. Closest Distance Pair

Easy
20m average time
0/40
Asked in companies
SnapdealQualcommIBM

You are given an array containing 'N' points in the plane. The task is to find out the distance of the closest points.

Note :
Where distance between two points (x1, y1) and (x2, y2) is calculated as [(x1 - x2) ^ 2] + [(y1 - y2) ^ 2].
Try solving now

2. Find the special Nodes.

3. Good Nodes

Easy
15m average time
80% success
0/40
Asked in companies
MicrosoftOracleFlipkart

You are given the root node of a binary tree consisting of ‘N’ nodes. Your task is to find the number of good nodes in the given binary tree.

A good node is defined as good if there are no nodes with a value greater than X’s value in the path from the root to X.

You are given a root node ‘ROOT’.Your task is to return the number of good nodes.

Example:
Elements are in the level order form. The input consists of values of nodes separated by a single space in a single line. In case a node is null, we take -1 in its place.

For example, the input for the tree depicted in the below image would be :

Example

1
2 3
4 -1 5 6
-1 7 -1 -1 -1 -1
-1 -1

Explanation :
Level 1 :
The root node of the tree is 1

Level 2 :
Left child of 1 = 2
Right child of 1 = 3

Level 3 :
Left child of 2 = 4
Right child of 2 = null (-1)
Left child of 3 = 5
Right child of 3 = 6

Level 4 :
Left child of 4 = null (-1)
Right child of 4 = 7
Left child of 5 = null (-1)
Right child of 5 = null (-1)
Left child of 6 = null (-1)
Right child of 6 = null (-1)

Level 5 :
Left child of 7 = null (-1)
Right child of 7 = null (-1)

The first not-null node (of the previous level) is treated as the parent of the first two nodes of the current level. 

The second not-null node (of the previous level) is treated as the parent node for the next two nodes of the current level and so on.

The input ends when all nodes at the last level are null (-1).
Note :
The above format was just to provide clarity on how the input is formed for a given tree. 

The sequence will be put together in a single line separated by a single space. Hence, for the above-depicted tree, the input will be given as:

1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1
Try solving now
03
Round
Medium
Face to Face
Duration60 minutes
Interview date28 Jul 2022
Coding problem2

It was conducted in the afternoon,
The interviewer was very kind and supportive.

1. Check for Duplicate Subtree

Hard
15m average time
85% success
0/120
Asked in companies
GoogleFlipkart

Given an arbitrary binary tree consisting of N nodes, each node is associated with a character value. Your task is to check whether there exist a pair of nodes such that their subtrees are equal.

Note :
A subtree of a node X is all the nodes that are below X and X itself.

A binary tree is a tree consisting of at most two children.

Two subtrees are said to be equal if they both have the same structure and the corresponding nodes in both the subtrees are associated with the same character value.
Try solving now

2. Longest Substring Without Repeating Characters

Moderate
20m average time
80% success
0/80
Asked in companies
SAP LabsTech MahindraWells Fargo

Given a string 'S' of length 'L', return the length of the longest substring without repeating characters.

Example:

Suppose given input is "abacb", then the length of the longest substring without repeating characters will be 3 ("acb").
Problem approach

The second question was finding the longest substring with all the unique characters. I used the variable-sized sliding window algorithm to code it in the O(n) approach. She again seems to be very satisfied. Then I was again asked to dry run the algorithm against the given test case.
She clearly told me that brute force of this solution is very easy and she is not expecting me to come up with that.

Try solving now

Here's your problem of the day

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

Skill covered: Programming

Which SQL clause is used to specify the conditions in a query?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Flipkart
1992 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 2 problems
Interviewed by Flipkart
1638 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Flipkart
2097 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Flipkart
1119 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15292 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15116 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10047 views
2 comments
0 upvotes