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

SDE - 1

Flipkart
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 Month
Topics: Linkedlist, Stacks, Queues, Trees, Graph, Dynamic Programming
Tip
Tip

Tip 1 : Go through all the data structures
Tip 2 : Practice problems on codestudio.
Tip 3 : Give few mock interviews

Application process
Where: Other
Eligibility: 2nd year engineering girls
Resume Tip
Resume tip

Tip 1 : List out all your achievements and participation 
Tip 2 : Have at least two projects on your resume

Interview rounds

02
Round
Medium
Video Call
Duration60 Minutes
Interview date18 Apr 2022
Coding problem2

This round lasted for an hour and two questions were asked based on dsa. The first question dealt with sorting, while the second dealt with the concept of complete binary tree. I was able to solve both of the problems and advanced to the next round.

1. Missing Number

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

You are given an array/list ‘BINARYNUMS’ that consists of ‘N’ distinct strings which represent all integers from 0 to N in binary representation except one integer. This integer between 0 to ‘N’ whose binary representation is not present in list ‘BINARYNUMS’ is called ‘Missing Integer’.

Your task is to find the binary representation of that ‘Missing Integer’. You should return a string that represents this ‘Missing Integer’ in binary without leading zeros.

Note

1. There will be no leading zeros in any string in the list ‘BINARYNUMS’.

Example:

Consider N = 5 and the list ‘binaryNums’=  [“0”, “01”, “010”, “100”, “101”].  This list consists of the binary representation of numbers [0, 1, 2, 4, 5]. Clearly, the missing number is 3 and its binary representation will be “11”. So you should return string “11”.
Problem approach

brute force approach was to use linear search
the efficient approach was to apply binary search and check if the index is just one less than the number if it is greater than index+1 then we need to move left if it is equal then move right and find out the required answer

Try solving now

2. Nodes In Complete Binary Tree

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

You are given the root of a complete binary tree, you need to calculate the number of nodes in the given complete binary tree.

A complete binary tree is a tree in which all the levels are completely filled except the last level. Nodes in the last level are as left as possible.

For Example:

In the above complete binary tree, all the levels are filled except for the last. In the last level, all the nodes in the last level are as far left as possible.
Problem approach

brute force was to apply bfs and return the node which was popped out last
the efficient approach was to find the height of left subtree and right subtree and check if the node lies in the left part or right part recursively

Try solving now
03
Round
Medium
Video Call
Duration60 Minutes
Interview date21 Apr 2022
Coding problem2

In this round I was asked questions based on my SOP before the interviewer moved on to the dsa questions. The sliding window technique was used in the first question, while recursion and backtracking was used in second question.

1. Longest Substring Without Repeating Characters

Moderate
20m average time
80% success
0/80
Asked in companies
Morgan StanleyGartnerInfo Edge India (Naukri.com)

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

I used the sliding window technique and pushed the first element to the map and before pushing the next element I checked if the element is already present or not if yes then I removed the first element and checked until we have elements which are all unique in the map and output the maximum size of the map.

Try solving now

2. Palindrome Partitioning

Moderate
25m average time
75% success
0/80
Asked in companies
HSBCMicrosoftGoogle

You are given a string 'S'. Your task is to partition 'S' such that every substring of the partition is a palindrome. You need to return all possible palindrome partitioning of 'S'.

Note: A substring is a contiguous segment of a string.

For Example:
For a given string “BaaB”
3 possible palindrome partitioning of the given string are:
{“B”, “a”, “a”, “B”}
{“B”, “aa”, “B”}
{“BaaB”}
Every substring of all the above partitions of “BaaB” is a palindrome.
Problem approach

I solved this using recursion and backtracking and partitioned the string from 0-k and k-length of string where k is the point of partition and checked how many partitions are palindrome and if a partition not forming palindrome then we'll backtrack and check for remaining partitions.

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 operator is used for exponentiation in Python?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 10 problems
Interviewed by Flipkart
1911 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Flipkart
1746 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Flipkart
1503 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by Flipkart
1077 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
107484 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
51830 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
32109 views
6 comments
0 upvotes