i
Flipkart
Proud winner of ABECA 2025 - AmbitionBox Employee Choice Awards
Filter interviews by
Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:
1. get(key)
- Return the value of the key if it exists in the cache; otherwi...
Design a Least Recently Used (LRU) cache data structure that supports get and put operations with capacity constraint.
Use a combination of hashmap and doubly linked list to efficiently implement the LRU cache.
Keep track of the least recently used item and update it accordingly when inserting new items.
Ensure to handle the capacity constraint by evicting the least recently used item when the cache is full.
Implement...
Indexing in databases is a technique used to improve the speed of data retrieval by creating a data structure that allows for quick lookups.
Indexes are created on columns in a database table to speed up the retrieval of rows that match a certain condition.
Types of indexes include B-tree, hash, and bitmap indexes.
Indexes can improve the performance of SELECT queries but may slow down INSERT, UPDATE, and DELETE oper...
You are given a permutation of 'N' integers. A sequence of 'N' integers is considered a permutation if it includes all integers from 1 to 'N' exactly once. Your task is t...
The task is to rearrange a given permutation of 'N' integers to form the lexicographically next greater permutation.
Iterate from right to left to find the first element that is smaller than the element to its right.
Swap this element with the smallest element to its right that is greater than it.
Reverse the elements to the right of the swapped element to get the lexicographically next greater permutation.
You are given a binary tree with 'N' nodes. Your task is to determine the size of the largest subtree within the binary tree which is also a Binary Search Tree (BST).
...Find the size of the largest subtree in a binary tree that is also a Binary Search Tree.
Traverse the tree in a bottom-up manner to check if each subtree is a BST.
Keep track of the size of the largest BST subtree encountered so far.
Use recursion to solve this problem efficiently.
Example: For the input 1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1, the largest BST subtree has a size of 3.
What people are saying about Flipkart
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.
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 a...
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
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...
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.
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' ...
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).
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