i
Flipkart
Proud winner of ABECA 2025 - AmbitionBox Employee Choice Awards
Filter interviews by
Depth-First Search (DFS) is a graph traversal algorithm that explores as far as possible along each branch before backtracking.
DFS uses a stack data structure, either explicitly or via recursion.
It starts from a source node and explores as far as possible along each branch.
Example: In a graph with nodes A, B, C, and edges (A-B, A-C), starting DFS from A visits B then C.
DFS can be used to find connected components ...
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.
Topological sort orders nodes in a directed acyclic graph (DAG) based on dependencies.
Topological sort is used for scheduling tasks based on dependencies.
It can be implemented using Depth-First Search (DFS) or Kahn's algorithm.
Example: For tasks A -> B -> C, the order can be A, B, C.
A graph must be a Directed Acyclic Graph (DAG) for topological sorting to be possible.
The result is not unique; multiple valid ...
To reverse a doubly linked list, swap the next and previous pointers of each node.
Start from the head of the list
Swap the next and previous pointers of each node
Update the head and tail pointers accordingly
What people are saying about Flipkart
Efficient solution to find k closest stars to earth from a list of stars and their distances.
Use a priority queue to store the distances of stars from earth.
Iterate through the list of stars and add their distances to the priority queue.
Pop k elements from the priority queue to get the k closest stars to earth.
Modify code to find maximum BST subtree and maximum BST tree in a given tree.
Create a function to check if a given tree is a BST
Traverse the tree and check if each subtree is a BST
Keep track of the maximum BST subtree found so far
To find maximum BST tree, check if each node can be the root of a BST
Keep track of the maximum BST tree found so far
next_permutation function generates the next greater lexicographic permutation of a sequence
The function modifies the sequence to its next permutation if possible
If the sequence is already the largest permutation, it rearranges it to the smallest permutation
The function returns true if a next permutation exists, else false
The sequence must be sorted in non-descending order before calling the function
Given n sequences with start, stop and score, find maximum subset of non-overlapping sequences with maximum total score.
Sort the sequences by their end points.
Use dynamic programming to find the maximum sum of non-overlapping sequences.
Keep track of the previous non-overlapping sequence with maximum sum.
Return the maximum sum and the corresponding non-overlapping sequences.
Algorithm to determine valid variables on a given line of code.
Create a stack to keep track of variable declarations
Traverse the code line by line
When encountering a variable declaration, push it onto the stack
When encountering a closing brace, pop all variables declared within that scope
Return all variables still on the stack when reaching the given line number
Implement LRU cache with put, get, and remove operations.
LRU stands for Least Recently Used.
The cache should have a maximum capacity.
When the cache is full, the least recently used item should be removed.
When an item is accessed, it should be moved to the front of the cache.
Use a doubly linked list and a hash map to implement the cache efficiently.
I applied via Referral and was interviewed in Oct 2024. There were 2 interview rounds.
Dp question of jump game
I was asked to design a stack where push and pop operations are done at every version in O(1)
I appeared for an interview in Sep 2024.
A coding question on qraphs
Design an airline service for booking flights and managing reservations.
Create a user-friendly website or mobile app for customers to search and book flights.
Implement a secure payment system for online bookings.
Develop a system for managing flight schedules, seat availability, and reservations.
Include features for customers to check-in online, select seats, and view flight status.
Offer loyalty programs and discounts f...
Dsa was asked, focus on Binary Search
I applied via Company Website and was interviewed in Mar 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Jan 2024. There were 2 interview rounds.
Cleared this round. It was easy
To reverse a doubly linked list, swap the next and previous pointers of each node.
Start from the head of the list
Swap the next and previous pointers of each node
Update the head and tail pointers accordingly
I applied via Company Website and was interviewed in Jan 2024. There were 3 interview rounds.
Programming language
Arithematic logic questions
Programming topic any one topic
Hard problems, with limited time
I applied via Campus Placement and was interviewed before Nov 2023. There were 3 interview rounds.
It was a typical coding assessment with 3 questions, Med to hard level questions.
Implement a tree data structure and perform a medium to hard level operation on it.
Create a Node class with left and right pointers
Implement methods for insertion, deletion, and traversal
Solve a specific problem like finding the lowest common ancestor
The two-pointer technique is an efficient algorithmic approach for solving problems involving arrays or linked lists.
Used to find pairs in a sorted array, e.g., finding two numbers that sum to a target.
Can be applied to reverse a string or array in place.
Effective for merging two sorted arrays into one sorted array.
Useful in problems like 'Container With Most Water' to maximize area.
Can help in detecting cycles in link...
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 16 interview experiences
Difficulty level
Duration
based on 30 reviews
Rating in categories
Senior Executive
2.7k
salaries
| ₹4 L/yr - ₹9.1 L/yr |
Team Lead
2.1k
salaries
| ₹3.5 L/yr - ₹8 L/yr |
Operations Executive
1.9k
salaries
| ₹2.2 L/yr - ₹6.3 L/yr |
Assistant Manager
1.8k
salaries
| ₹10 L/yr - ₹18 L/yr |
Data Entry Operator
1.4k
salaries
| ₹1.2 L/yr - ₹3.5 L/yr |
Amazon
Myntra
Snapdeal
Meesho