i
Flipkart
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I applied via Referral and was interviewed before Sep 2023. There were 2 interview rounds.
Design instagram like service - machine coding round
Find the Kth largest element in a Binary Search Tree.
Perform reverse inorder traversal to visit nodes in descending order.
Keep track of the count of visited nodes to find the Kth largest element.
Stop traversal once the Kth largest element is found.
I was interviewed in Apr 2022.
Round duration - 60 Minutes
Round difficulty - Medium
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.
You are provided with an array named BINARYNUMS
consisting of N
unique strings. Each string represents an integer in binary, covering every integer from 0 to N except for ...
Find the missing integer in binary form from an array of unique binary strings.
Iterate through the array of binary strings and convert each string to its decimal equivalent.
Calculate the sum of all integers from 0 to N using the formula (N * (N + 1)) / 2.
Subtract the sum of the integers represented by the binary strings from the total sum to find the missing integer.
Convert the missing integer to binary form and return
Given the root of a complete binary tree, calculate the total number of nodes in this tree.
A complete binary tree is defined as a binary tree...
Count the total number of nodes in a complete binary tree given its root.
Traverse the tree in level order and count the nodes
Use a queue to keep track of nodes at each level
Check for null nodes represented as -1 in the input
Return the total count of nodes in the tree
Round duration - 60 Minutes
Round difficulty - Medium
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.
Given a string S
of length L
, determine the length of the longest substring that contains no repeating characters.
"abac...
Find the length of the longest substring without repeating characters in a given string.
Use a sliding window approach to keep track of the longest substring without repeating characters.
Use a hashmap to store the index of each character as it appears in the string.
Update the start index of the window when a repeating character is found.
Calculate the maximum length of the window as you iterate through the string.
Return
You are given a string S
. Your task is to partition S
such that every substring of the partition is a palindrome. Your objective is to return all possible palindr...
Partition a string into palindromes and return all possible configurations.
Use backtracking to generate all possible palindrome partitions
Check if each substring is a palindrome before adding it to the partition
Return all valid partitions as an array of strings
Tip 1 : Go through all the data structures
Tip 2 : Practice problems on leetcode.
Tip 3 : Give few mock interviews
Tip 1 : List out all your achievements and participation
Tip 2 : Have at least two projects on your resume
I applied via Referral and was interviewed before May 2023. There were 2 interview rounds.
1. Machine code - Time duration 2 hours. They will give you length like design Cab booking system to build 3-4 functionality, like looking near by cab, calculate charge etc.
I applied via campus placement at Indian Institute of Technology (IIT), Hyderabad and was interviewed before Sep 2023. There was 1 interview round.
2 questions were asked.
Flipkart interview questions for designations
I was interviewed in Nov 2021.
Round duration - 60 Minutes
Round difficulty - Easy
Two coding questions were asked of medium complexity. Timing and date of the interview was according to your comfort, interviewer was very helpful.
Given a sorted array of distinct integers that has been rotated clockwise by an unknown amount, you need to search for a specified integer in the array. Fo...
Round duration - 60 Minutes
Round difficulty - Medium
It was a low level design round, of around 60 min, where you have to explain your appoach along with coding.
Round duration - 45 minutes
Round difficulty - Easy
It was a HM round, with questions mainly around past experience
1. Focus on company specific question
2. Walk through all the interview processes for a company for your experience.
Fill all the experience in an order, most effective experience should be at the top.
Resume should be clear and crisp, include technical jargons for screening.
Get interview-ready with Top Flipkart Interview Questions
I applied via campus placement at Indian School of Mines (ISM), Dhanbad and was interviewed before May 2023. There were 3 interview rounds.
It will be mostly DSA for freshers. 1 easy 1 medium question
Round 2 interview was a coding interview too. 2 questions asked. one implementation and another topological sort
I was interviewed in Aug 2021.
Round duration - 90 minutes
Round difficulty - Medium
The first round started around 10 in the morning and got wrapped up around 12 p.m I was given a question to solve and then had a discussion with the interviewer around the same.
Time to solve question: 1.5 hr
Discussion: 30 mins
Round duration - 60 minutes
Round difficulty - Easy
There were 2 DSA based questions andI had to write a clean code without any compiler.
You are provided with a 2-dimensional matrix having N
rows and M
columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...
Count the number of islands in a 2D matrix of 1s and 0s.
Use Depth First Search (DFS) or Breadth First Search (BFS) to traverse the matrix and identify connected groups of 1s.
Maintain a visited array to keep track of visited cells to avoid revisiting them.
Increment the island count each time a new island is encountered.
Consider all eight possible directions for connectivity between cells.
Handle edge cases such as out of
Given an unsorted array arr
of distinct integers and an integer k
, your task is to find the k-th
smallest element in the array.
The first line of input c...
Find the k-th smallest element in an unsorted array of distinct integers.
Sort the array and return the k-th element.
Use a priority queue or quickselect algorithm for efficient solution.
Handle edge cases like k being out of bounds or array being empty.
Round duration - 75 minutes
Round difficulty - Medium
It was a Hiring manager round. The discussion was mainly around my previous organisation and the projects I did.
This problem requires you to return a pointer that references the middle node of a singly linked list.
If the number of elements in the linked list is odd, ...
Return a pointer to the middle node of a singly linked list.
Traverse the linked list with two pointers, one moving twice as fast as the other.
When the fast pointer reaches the end, the slow pointer will be at the middle.
If the number of elements is even, return the second middle node.
Tip 1 : Flipkart has a round called Machine Coding which is slightly different from test of the companies. This is mostly the 1st round so specially prepare for this round few days beforehand.
Tip 2 : Practice Algorithms and Data structures and Try to reach to the optimised solution as they expect a clean bug-free code in their DS round.
Tip 1 : Have metrics in your resume. E.g. explain what problem you solved and how it improved the efficiency/ reduced the manual hours/ saved time etc in numbers.
Tip 2 : Keep your resume in line with the job requirements. Don't add irrelevant information which doesn't really matter for SDE role.
I was interviewed in Aug 2021.
Round duration - 60 Minutes
Round difficulty - Medium
The round was held on Google Meet and I was given 2 coding problems for which first I had to explain my approach and then I had to write code in Shared Google Docs and dry run on sample test cases and discuss Time and Space Complexity. After the coding problems , I was asked some basic theoretical concepts from Data Structures and Time Complexities.
There were 2 interviewers and both were very friendly and helpful and tried to bring us to our comfort level first.
Given two strings S
and X
containing random characters, the task is to find the smallest substring in S
which contains all the characters present in X
.
The first...
Find the smallest substring in S containing all characters in X.
Use a sliding window approach to find the smallest window in S containing all characters in X.
Keep track of the characters in X using a hashmap.
Slide the window to the right until all characters in X are found, then shrink the window from the left to find the smallest window.
Determine if an array contains a Pythagorean triplet by checking whether there are three integers x, y, and z such that x2 + y2 = z2 within the array.
The first lin...
Detect if an array contains a Pythagorean triplet by checking if there are three integers x, y, and z such that x^2 + y^2 = z^2.
Iterate through all possible triplets of numbers in the array and check if they form a Pythagorean triplet.
Use a nested loop to generate all possible combinations of three numbers from the array.
Check if the sum of squares of two numbers is equal to the square of the third number for each trip...
The time complexity of retrieving the minimum element from a max heap is O(1).
Retrieving the minimum element from a max heap involves accessing the root node, which is always the minimum element in a max heap.
Since the root node can be directly accessed in constant time, the time complexity is O(1).
Round duration - 60 Minutes
Round difficulty - Medium
This was also a Data Structures and Algorithms round where I was asked to solve 2 coding problems explaining my approach with proper Complexity Analysis . After the coding questions were over there was some time left so the interviewer asked me an interesting puzzle just to check my aptitude.
Given an integer array ARR
of size N
and a specified subarray size M
, calculate and return the median of all subarrays of size M
starting from the left of the array.
...
Calculate and return the median of all subarrays of a specified size in an integer array.
Iterate through the array and for each subarray of size M, calculate the median.
If the size of the subarray is even, take the average of the two middle numbers as the median.
Return the list of medians for all subarrays of size M.
Given a binary tree with N
nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true
; otherwise, return false
.
A binary search tree (BST)...
Validate if a given binary tree is a Binary Search Tree (BST) or not.
Check if the left subtree of a node contains only nodes with data less than the node's data.
Check if the right subtree of a node contains only nodes with data greater than the node's data.
Recursively check if both the left and right subtrees are also binary search trees.
Round duration - 50 Minutes
Round difficulty - Medium
In this round I was first asked to implement a Phone Book , which required the knowledge of Trie and then I was asked a question related to Memory Management and External Sorting . I was able to answer both of them with proper explanation and codes.
You are given a list/array of strings representing the contacts in a phone directory. The task is to perform a search based on a query string 'str' and return all contacts...
Implement a phone directory search feature to suggest contacts based on a query string prefix.
Iterate through the contact list to find contacts with the prefix matching the query string.
Display suggestions as the user types each character of the query.
Handle cases where no suggestions are found for a particular prefix by printing 'No suggestions found'.
Ninja is learning about sorting algorithms, specifically those that do not rely on comparisons. Can you help Ninja implement the counting sort algorithm?
Implement counting sort algorithm to sort an array of integers without comparisons.
Count the frequency of each element in the input array.
Calculate the prefix sum of frequencies to determine the position of each element in the sorted array.
Build the sorted array based on the prefix sum.
Time complexity of counting sort is O(n+k), where n is the number of elements and k is the range of input.
Example: Input array {-2, 1,
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed in Jul 2021.
Round duration - 50 Minutes
Round difficulty - Medium
The round was held on Google Meet and I was given 2 coding problems for which first I had to explain my approach and then I had to write code in Shared Google Docs and dry run on sample test cases and discuss Time and Space Complexity. After the coding problems , I was asked some basic theoretical concepts from Data Structures and Time Complexities.
There were 2 interviewers and both were very friendly and helpful and tried to bring us to our comfort level first.
You are given two singly linked lists, where each list represents a positive number without any leading zeros.
Your task is to add these two numbers and return the sum as ...
Add two numbers represented as linked lists and return the sum as a linked list.
Traverse both linked lists simultaneously while adding corresponding nodes and carry over the sum if needed
Handle cases where one linked list is longer than the other by considering carry over
Create a new linked list to store the sum and return its head node
Given a binary tree with 'N' nodes, identify the path from a leaf node to the root node that has the maximum sum among all root-to-leaf paths.
All the possibl...
Find the path from a leaf node to the root node with the maximum sum in a binary tree.
Traverse the binary tree from leaf to root, keeping track of the sum along each path.
Compare the sums of all root-to-leaf paths and find the path with the maximum sum.
Implement a recursive function to traverse the tree and calculate the sum of each path.
The time complexity of retrieving the minimum element from a max heap is O(1).
Retrieving the minimum element from a max heap involves accessing the root node, which is always the minimum element in a max heap.
Since the root node can be directly accessed in constant time, the time complexity is O(1).
Round duration - 50 Minutes
Round difficulty - Medium
This was also a Data Structures and Algorithm round where I was asked to solve 2 medium to hard level problems along with their pseudo code within 50 minutes . Later I was also tested on some basic questions related to Sorting Algorithms.
You are given an arbitrary binary tree consisting of N
nodes numbered from 1 to N
, an integer K
, and a node TARGET_NODE_VAL
from the tree. Your task is to find the Kth ancest...
Find the Kth ancestor of a given node in a binary tree.
Traverse the tree to find the path from the target node to the root node.
Keep track of the ancestors in a list while traversing.
Return the Kth ancestor from the list, or -1 if it doesn't exist.
Given an array Arr
consisting of N
integers, find all distinct triplets in the array that sum up to zero.
An array is said to have a triplet {Arr[i], Arr[j],...
Find all distinct triplets in an array that sum up to zero.
Use a nested loop to iterate through all possible triplets in the array.
Sort the array to easily identify duplicates and skip them.
Check for triplets with sum zero and add them to the result list.
Round duration - 50 minutes
Round difficulty - Medium
This round was also held on Google Meet where I was supposed to code 2 problems in a Google Doc. After the coding questions , I was asked some core concepts related to OS .
Both the interviewers were quite friendly and helpful. Overall it was a good experience.
Given a Singly Linked List of integers, your task is to reverse the Linked List by altering the links between the nodes.
The first line of input is an intege...
Reverse a singly linked list by altering the links between nodes.
Iterate through the linked list and reverse the links between nodes
Use three pointers to keep track of the current, previous, and next nodes
Update the links between nodes to reverse the list
Return the head of the reversed linked list
Given a binary search tree (BST) and an integer K
, the task is to find the K-th smallest element in the BST.
BST: Order of elements in increasing order...
Find the K-th smallest element in a binary search tree (BST).
Perform an in-order traversal of the BST to get elements in increasing order.
Keep track of the count of visited nodes to find the K-th smallest element.
Return the K-th smallest element once the count matches K.
FCFS stands for First-Come, First-Served. It is a scheduling algorithm used in operating systems.
FCFS is a non-preemptive scheduling algorithm where the process that arrives first is executed first.
It is a simple and easy-to-understand scheduling algorithm.
Example: If processes P1, P2, and P3 arrive in that order, they will be executed in the same order - P1, P2, P3.
FCFS can lead to the problem of 'convoy effect' where...
Thrashing in operating systems occurs when the system is spending more time swapping data between memory and disk than actually executing tasks.
Occurs when the system is constantly swapping data between memory and disk
Causes a significant decrease in performance as the system is unable to effectively execute tasks
Usually happens when the system is overloaded with too many processes or lacks sufficient memory
Can be miti...
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed in May 2021.
Round duration - 40 Minutes
Round difficulty - Easy
The online coding test is not that difficult. The questions are very easy. Only thing is that you have to come up with an efficient solution.The naive solutions are fairly obvious.
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Using stack approach :
1) Store the nodes(values and address) in the stack until all the values are entered.
2) Once all entries are done, Update the Head pointer to the last location(i.e the last value).
3) Start popping the nodes(value and address) and store them in the same order until the stack is empty.
4) Update the next pointer of last Node in the stack by NULL.
Round duration - 50 Minutes
Round difficulty - Easy
First question was very simple. I was asked for the solution first and then to write the code on paper and show it to him.Second question requires more time to think.
You have a robot currently positioned at the origin (0, 0) on a two-dimensional grid, facing the north direction. You are given a sequence of moves in the form of a string ...
The idea is to consider the starting position as (0, 0) and direction as East (We can pick any values for these). If after the given sequence of moves, we come back to (0, 0), then given sequence is circular, otherwise not.
Your house is located at the origin (0,0) of a 2-D plane. There are N
neighbors living at different points on the plane. Your goal is to visit exactly K
neighb...
1) Consider two points with coordinates as (x1, y1) and (x2, y2) respectively. The Euclidean distance between these two points will be:
√{(x2-x1)2 + (y2-y1)2}
2) Sort the points by distance using the Euclidean distance formula.
3) Select first K points form the list
4) Print the points obtained in any order.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
Top trending discussions
Some of the top questions asked at the Flipkart Software Developer interview -
The duration of Flipkart Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 15 interviews
4 Interview rounds
based on 30 reviews
Rating in categories
Senior Executive
2.7k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Team Lead
1.9k
salaries
| ₹1.2 L/yr - ₹9.9 L/yr |
Operations Executive
1.8k
salaries
| ₹1.2 L/yr - ₹6.3 L/yr |
Assistant Manager
1.6k
salaries
| ₹6 L/yr - ₹20.4 L/yr |
Executive
1.3k
salaries
| ₹1.2 L/yr - ₹7 L/yr |
Amazon
Myntra
Snapdeal
Meesho