Flipkart Coding Interview Questions
These are the coding problems tagged as asked at Flipkart in interviews and online assessments reported by candidates. Use the list to see which topics repeat, then solve the problems in order of difficulty: basics first, then the intermediate and advanced ones.
Reported questions change over time and are not a guarantee of what you will be asked, so treat them as a map of the patterns Flipkart tends to test rather than a list to memorise. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code.
Coding problems
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- Kth Largest Element (Intermediate)
- Majority Element (Basic)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Sort Colors (Basic)
- Largest Rectangle in Histogram (Advanced)
- Edit Distance (Advanced)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Sort Characters by Frequency (Intermediate)
- Candy Distribution (Advanced)
- Sum of Subarray Minimums (Advanced)
- Maximum Points From Cards (Intermediate)
- Find K Closest Elements (Intermediate)
- Shortest Bridge Between Two Islands (Intermediate)
- Tree Nodes at Distance K (Advanced)
- Tree Diameter (Advanced)
- Subarray Sum Equals K (Intermediate)
- Partition Equal Subset Sum (Intermediate)
- Next Permutation (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- Course Schedule Feasible (Intermediate)
- Sum of Subarray Minimums (Advanced)
- LRU Cache Operations (Basic)
- Reconstruct Itinerary (Advanced)
- Minimum Days to Make Bouquets (Intermediate)
- Binary Tree Maximum Path Sum (Advanced)
- Delete Node in a BST (Intermediate)
- Maximum Width of Binary Tree (Intermediate)
- Find Leaves of Binary Tree (Intermediate)
- Number of Islands (Basic)
- Rotting Oranges (Intermediate)
- Pacific Atlantic Water Flow (Intermediate)
- Course Schedule Order (Intermediate)
- Cheapest Flights Within K Stops (Intermediate)
- Maximal Square (Intermediate)
- Filling Bookcase Shelves (Intermediate)
- Ways to Split Array Into Good Subarrays (Intermediate)
- Min Stack Operations (Basic)
- Asteroid Collision (Intermediate)
- Reverse Substrings Between Parentheses (Intermediate)
- Find K Pairs With Smallest Sums (Intermediate)
- Maximum Performance of a Team (Advanced)
- Car Pooling (Intermediate)
- Rotate Image (Intermediate)
- 3Sum Triplets (Intermediate)
- 3Sum Closest (Intermediate)
- Boats to Save People (Intermediate)
- Single Element in a Sorted Array (Intermediate)
- Median of Two Sorted Arrays (Advanced)
- Minimum Limit of Balls in a Bag (Intermediate)
- Minimum Area Rectangle (Intermediate)
- Min Cost to Connect All Points (Intermediate)
- Cut Off Trees for Golf Event (Advanced)
- Minimum Cost to Reach City With Discounts (Advanced)
- Number of Atoms (Advanced)
- Maximum Frequency Stack (Advanced)
- Trapping Rain Water II (Advanced)
- Longest Repeating Character Replacement (Intermediate)
- Running Median of Stream (Intermediate)
Related
- Company interview roadmaps
- Practice coding problems online
- System design interview questions
- SDE-2 interview preparation
- All interview question topics
Frequently asked questions
How should I use the Flipkart problem list?
Sort by the topics you are weakest in, solve a problem under a timer, then read the explanation. Repeat until the patterns feel familiar, and finish with a mock interview.
Are these the exact Flipkart interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.