Flipkart Interview Prep (SDE 2 / SDE 3)

Flipkart’s loop from SDE-2 upward is built around machine coding. You get a written problem statement and roughly ninety minutes to produce running, extensible code, then a review discussion where the interviewer walks your design and usually asks you to extend it on the spot. It is graded like a pull request, and it is where most candidates are rejected.

The rest of the loop is a DSA round at medium level with optimisation follow-ups, one or two system design rounds, and a hiring manager conversation. Design questions sit squarely in e-commerce: feeds, notifications, carts and inventory, catalogue search, and read-heavy traffic with a known peak on a sale date.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, level, team match
Online Assessment 60-90 min Two or three coding problems, campus and some lateral loops
Machine Coding 90-120 min Working, extensible code from a written spec
Code Review Discussion 30-45 min Walkthrough plus an added requirement
Problem Solving (DSA) 60-90 min Medium problems with optimisation follow-ups
System Design 60 min SDE 2 and above, e-commerce scale
Hiring Manager ~45 min Ownership, past projects, team fit

Machine coding is the filter. Reports vary on the time box — ninety minutes is standard, with some loops running to two hours and some granting a short extension — but they agree on what gets graded: a demonstrable program, clean class boundaries, and a design that absorbs the requirement the reviewer adds afterwards. The review discussion is part of the same round, not a formality. Online assessments appear mainly in campus and some lateral pipelines; experienced candidates are often routed straight to machine coding.


What Flipkart Actually Tests

Derived from 108 reported Flipkart-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 8 7%
Medium 71 66%
Hard 29 27%

Over a quarter of the list is Hard, so treat Hard problems as the baseline rather than a stretch goal.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Dynamic Programming 19 18%
2 Sliding Window & Two Pointers 12 11%
3 Graphs 11 10%
4 Trees 11 10%
5 Arrays & Hashing 10 9%
6 Heap / Priority Queue 10 9%
7 Binary Search 9 8%
8 Stack & Monotonic Stack 8 7%
9 Intervals, Greedy & Sorting 6 6%
10 Design (Coding) 5 5%

Flipkart Signature Problems

These rank high on Flipkart’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Contain Virus BFS + DFS Hard 3 of 142 LeetCode →
2 Maximum Points You Can Obtain from Cards Sliding Window + Prefix Sum Medium 11 of 142 Solve →
3 Transform Array to All Equal Elements Greedy Medium 3 of 142 LeetCode →
4 Minimum Number of Coins to be Added Greedy Medium 4 of 142 LeetCode →
5 Design Movie Rental System Ordered Set + Design Hard 2 of 142 LeetCode →
6 Minimum Cost to Reach City With Discounts Dijkstra + Shortest Path Medium 2 of 142 LeetCode →
7 Numbers With Same Consecutive Differences Backtracking + BFS Medium 5 of 142 LeetCode →
8 Minimum Limit of Balls in a Bag Binary Search Medium 7 of 142 Solve →
9 Cut Off Trees for Golf Event Heap + BFS Hard 2 of 142 Solve →
10 Rectangle Area II Sweep Line + Segment Tree Hard 2 of 142 LeetCode →
11 Reverse Substrings Between Each Pair of Parentheses Bracket Sequences + Stack Medium 6 of 142 LeetCode →
12 Cherry Pickup II DP Hard 7 of 142 Solve →
13 Create Maximum Number Monotonic Stack + Greedy Hard 7 of 142 LeetCode →
14 Filling Bookcase Shelves DP Medium 2 of 142 LeetCode →

If you are short on time, these carry more Flipkart-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of Flipkart’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 Contain Virus BFS + DFS Hard LeetCode →
2 Cheapest Flights Within K Stops Shortest Path + Graph Medium Solve →
3 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
4 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →
5 Loud and Rich DAG + Topological Sort Medium LeetCode →
6 Rotting Oranges BFS Medium Solve →
7 Two Sum Hash Table + Array Easy Solve →

System Design (HLD) Problems Asked at Flipkart

# Problem Difficulty Link
1 E-commerce Platform Advanced Read →
2 Cart System Intermediate Read →
3 Twitter / Social Feed Intermediate Read →
4 Search Autocomplete (Catalogue Search) Intermediate Read →
5 Payment System Advanced Read →
6 Notification System Intermediate Read →
7 URL Shortener Intermediate Read →

LLD / Machine Coding Problems Asked at Flipkart

These are the shapes the machine coding round draws from. Practice them by typing them against a clock in your own editor, in memory, with a main method that demonstrates the flows. Reading a solution does not prepare you to produce one in ninety minutes.

# Problem Difficulty Link
1 E-commerce Cart Intermediate Read →
2 Inventory Management Intermediate Read →
3 Order Management System Intermediate Read →
4 Splitwise Intermediate Read →
5 Delivery Slot Booking Intermediate Read →
6 Snake and Ladder Intermediate Read →
7 Parking Lot Beginner Read →

DSA Problems Asked at Flipkart

86 problems across 12 pattern groups. Each group is allocated in proportion to its real share of Flipkart’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. Showing the top 14 of 16 on the list.

# Problem Pattern Difficulty Link
1 The Score of Students Solving Math Expression Memoization + Stack Hard LeetCode →
2 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
3 Cherry Pickup II DP Hard Solve →
4 Sum of Subarray Minimums Monotonic Stack + DP Medium Solve →
5 Unique Paths Combinatorics + DP Medium Solve →
6 Best Time to Buy and Sell Stock DP Easy Solve →
7 Dungeon Game DP Hard Solve →
8 Edit Distance DP Medium Solve →
9 Generate Parentheses Bracket Sequences + Backtracking Medium Solve →
10 01 Matrix BFS + DP Medium LeetCode →
11 Cherry Pickup DP Hard Solve →
12 Decode Ways DP Medium Solve →
13 Filling Bookcase Shelves DP Medium LeetCode →
14 Jump Game Greedy + DP Medium Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 11 on the list.

# Problem Pattern Difficulty Link
15 Maximum Points You Can Obtain from Cards Sliding Window + Prefix Sum Medium Solve →
16 Container With Most Water Greedy + Two Pointers Medium Solve →
17 3Sum Two Pointers Medium Solve →
18 Create Maximum Number Monotonic Stack + Greedy Hard LeetCode →
19 Next Permutation Two Pointers Medium Solve →
20 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
21 Sort Colors Bubble Sort + Quicksort Medium Solve →
22 3Sum Closest Two Pointers Medium Solve →
23 Boats to Save People Timsort + Greedy Medium Solve →
24 Contains Duplicate II Sliding Window Easy Solve →
25 Longest Repeating Character Replacement Sliding Window Medium Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 9 on the list.

# Problem Pattern Difficulty Link
26 Minimum Cost to Reach City With Discounts Dijkstra + Shortest Path Medium LeetCode →
27 Cheapest Flights Within K Stops Shortest Path + Graph Medium Solve →
28 Course Schedule DAG + Topological Sort Medium Solve →
29 Critical Connections in a Network Biconnected Component + Bridge (Graph) Hard LeetCode →
30 Word Ladder Bidirectional Search + BFS Hard Solve →
31 Course Schedule II Topological Sort + Graph Medium Solve →
32 Evaluate Division Bellman–Ford Algorithm + Floyd–Warshall Algorithm Medium LeetCode →
33 Loud and Rich DAG + Topological Sort Medium LeetCode →
34 Min Cost to Connect All Points Prim’s Algorithm + Kruskal’s Algorithm Medium Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 9 on the list.

# Problem Pattern Difficulty Link
35 Largest Rectangle in Histogram Range Query + Monotonic Stack Hard Solve →
36 Rectangle Area II Sweep Line + Segment Tree Hard LeetCode →
37 Amount of Time for Binary Tree to Be Infected Binary Tree + BFS Medium LeetCode →
38 Maximum Width of Binary Tree Binary Tree + BFS Medium Solve →
39 All Nodes Distance K in Binary Tree Binary Tree + BFS Medium LeetCode →
40 Binary Tree Maximum Path Sum DP on Trees + Binary Tree Hard Solve →
41 Delete Node in a BST BST + Binary Tree Medium LeetCode →
42 Diameter of Binary Tree DP on Trees + Binary Tree Easy Solve →
43 Find Leaves of Binary Tree DP on Trees + Binary Tree Medium Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 9 on the list.

# Problem Pattern Difficulty Link
44 Cut Off Trees for Golf Event Heap + BFS Hard Solve →
45 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
46 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →
47 Smallest Range Covering Elements from K Lists Sliding Window + Heap Hard LeetCode →
48 Trapping Rain Water II Heap + BFS Hard Solve →
49 Car Pooling Prefix Sum + Heap Medium Solve →
50 Find K Closest Elements Sliding Window + Heap Medium Solve →
51 Find K Pairs with Smallest Sums Heap Medium LeetCode →
52 Maximum Performance of a Team Heap + Greedy Hard Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 9 on the list.

# Problem Pattern Difficulty Link
53 Minimum Limit of Balls in a Bag Binary Search Medium Solve →
54 Search in Rotated Sorted Array Binary Search Medium Solve →
55 Koko Eating Bananas Binary Search Medium Solve →
56 Capacity To Ship Packages Within D Days Binary Search Medium Solve →
57 Minimum Number of Days to Make m Bouquets Binary Search Medium Solve →
58 Find Minimum in Rotated Sorted Array Binary Search Medium Solve →
59 Find the Duplicate Number Pigeonhole Principle + Floyd Cycle Medium Solve →
60 Magnetic Force Between Two Balls Binary Search Medium Solve →
61 Median of Two Sorted Arrays Divide and Conquer + Binary Search Hard Solve →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 6 on the list.

# Problem Pattern Difficulty Link
62 Transform Array to All Equal Elements Greedy Medium LeetCode →
63 Minimum Number of Coins to be Added Greedy Medium LeetCode →
64 Gas Station Greedy Medium Solve →
65 Candy Greedy Hard Solve →
66 Majority Element Boyer-Moore + Divide and Conquer Easy Solve →
67 Merge Intervals Quicksort Medium Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 6 on the list.

# Problem Pattern Difficulty Link
68 Contain Virus BFS + DFS Hard LeetCode →
69 Rotting Oranges BFS Medium Solve →
70 Find The Least Frequent Digit Counting + Math Easy LeetCode →
71 Two Sum Hash Table + Array Easy Solve →
72 Pacific Atlantic Water Flow BFS + DFS Medium Solve →
73 Subarray Sum Equals K Prefix Sum Medium Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 5 on the list.

# Problem Pattern Difficulty Link
74 Asteroid Collision Stack Medium Solve →
75 Reverse Substrings Between Each Pair of Parentheses Bracket Sequences + Stack Medium LeetCode →
76 Next Greater Element I Monotonic Stack Easy Solve →
77 Next Greater Element II Monotonic Stack Medium Solve →
78 Daily Temperatures Monotonic Stack Medium Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 4 on the list.

# Problem Pattern Difficulty Link
79 Design Movie Rental System Ordered Set + Design Hard LeetCode →
80 Find Median from Data Stream Data Stream + Design Hard Solve →
81 LRU Cache Doubly Linked List + Design Medium Solve →
82 Maximum Frequency Stack Ordered Set + Design Hard LeetCode →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 2 on the list.

# Problem Pattern Difficulty Link
83 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →
84 Map Sum Pairs Trie + Design Medium LeetCode →

Math & Bit Manipulation

Number theory, geometry, and bit tricks. Short to write, easy to get subtly wrong on overflow and sign. All 2 on the list.

# Problem Pattern Difficulty Link
85 Triples with Bitwise AND Equal To Zero Bit Manipulation Hard LeetCode →
86 Minimum Area Rectangle Geometry Medium LeetCode →

Flipkart’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 16 (18%) The Score of Students Solving Math Expression, Trapping Rain Water, Cherry Pickup II
2 Sliding Window & Two Pointers High 11 (12%) Maximum Points You Can Obtain from Cards, Container With Most Water, 3Sum
3 Graphs High 9 (10%) Minimum Cost to Reach City With Discounts, Cheapest Flights Within K Stops, Course Schedule
4 Trees Medium-High 9 (10%) Largest Rectangle in Histogram, Rectangle Area II, Amount of Time for Binary Tree to Be Infected
5 Heap / Priority Queue Medium-High 9 (10%) Cut Off Trees for Golf Event, Kth Largest Element in an Array, Merge k Sorted Lists
6 Binary Search Medium-High 9 (10%) Minimum Limit of Balls in a Bag, Search in Rotated Sorted Array, Koko Eating Bananas
7 Intervals, Greedy & Sorting Medium 6 (7%) Transform Array to All Equal Elements, Minimum Number of Coins to be Added, Gas Station
8 Arrays & Hashing Medium 6 (7%) Contain Virus, Rotting Oranges, Find The Least Frequent Digit
9 Stack & Monotonic Stack Medium 5 (6%) Asteroid Collision, Reverse Substrings Between Each Pair of Parentheses, Next Greater Element I
10 Design (Coding) Medium 4 (4%) Design Movie Rental System, Find Median from Data Stream, LRU Cache

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Sliding Window & Two Pointers, Graphs covers the bulk of what Flipkart actually asks. The rest is insurance for the one round that goes somewhere unexpected.


The Machine Coding Round and the Review That Follows

One written spec, several requirements, a time box, and running code at the end. The review afterwards is where the score is settled, because that is when the reviewer tests whether your design can take a change.

Signal What strong looks like What weak looks like
First ten minutes Reads the whole spec, lists entities, writes the class skeleton Starts on requirement one without reading requirement four
Data model Clear entities with obvious ownership, no god class Everything hanging off one manager object
Scope control Core requirements working, extras only if time remains Half-built bonus features and a broken core flow
Demonstrability A main flow or a few tests that actually run Nothing executable when time is called
Extensibility A new rule drops in as a new class Every change edits the same switch statement
The added requirement Absorbed in a few minutes without restructuring Needs the model rewritten, which cannot be done in the room
Explanation Walks the model and names the trade-offs taken Reads the code out line by line

Two practical rules. Keep everything in memory unless the spec says otherwise — no database, no framework, no build complexity you have to debug. And write the demo before you write the last feature, so there is always something to show.


Designing for a Flipkart-Scale Sale Event

Flipkart’s design rounds escalate the same way: a reasonable architecture, then “what breaks at ten times this traffic?” Sale events are the honest version of that question, because the peak is on a calendar and the failure modes are known.

Pressure What actually breaks What a senior answer covers
Flash sale on one product A single hot partition serving all the traffic Request coalescing, dedicated cache for the hot key, admission control, queueing with a fair draw
Last unit in stock Two checkouts racing the same inventory row Reservation with expiry versus allocation, conditional updates, what the loser sees and when
Price and stock freshness Cached availability diverging from the ledger Which number is authoritative, acceptable staleness per surface, invalidation on write
Feed and listing reads Read amplification against the primary store Read replicas, precomputed listings, CDN for immutable assets, stale-while-revalidate
Catalogue search Index freshness after a price or stock change Inverted index with near-real-time updates, facets, ranking inputs, fallback when the index lags
Payment and order creation Duplicate orders from client retries Idempotency keys, outbox for downstream events, compensation when payment succeeds but order creation fails
Everything at once Retry storms turning a blip into an outage Backoff with jitter, circuit breakers, shedding non-critical features, pre-scaled capacity

The distinguishing move is naming what you are willing to degrade. Recommendations, reviews, and wishlist can be dropped under load. Inventory truth and payment correctness cannot, and saying which is which out loud is what a senior answer sounds like.


Behavioural Round

# Question
1 Tell me about a system you owned end to end. What would you change now?
2 Tell me about a sale or peak-traffic event you prepared for. What did you get wrong?
3 Tell me about an incident you led the response to.
4 Tell me about a design you argued for that the team did not adopt.
5 Tell me about a time you cut scope to hit a date, and what it cost later.
6 Tell me about a time you had to work with a dependency that was not ready.
7 Tell me about a time you improved something nobody asked you to improve.
8 Why Flipkart, and which part of the business interests you?

Indian e-commerce runs on known peaks and thin margins, so the stories that resonate are about capacity planning, cost awareness, and incidents during a sale window. Quantify what you changed — latency, cost, error rate — because the interviewer is listening for someone who has watched a dashboard while traffic tripled.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming (part 1) The Score of Students Solving Math Expression, Trapping Rain Water, Cherry Pickup II
2 Dynamic Programming (part 2) Sum of Subarray Minimums, Unique Paths, Best Time to Buy and Sell Stock
3 Sliding Window & Two Pointers (part 1) Maximum Points You Can Obtain from Cards, Container With Most Water, 3Sum
4 Sliding Window & Two Pointers (part 2) Create Maximum Number, Next Permutation, Longest Substring Without Repeating Characters
5 Graphs (part 1) Minimum Cost to Reach City With Discounts, Cheapest Flights Within K Stops, Course Schedule
6 Graphs (part 2) Critical Connections in a Network, Word Ladder, Course Schedule II
7 Trees Largest Rectangle in Histogram, Rectangle Area II, Amount of Time for Binary Tree to Be Infected
8 Heap / Priority Queue Cut Off Trees for Golf Event, Kth Largest Element in an Array, Merge k Sorted Lists
9 Binary Search Minimum Limit of Balls in a Bag, Search in Rotated Sorted Array, Koko Eating Bananas
10 Intervals, Greedy & Sorting Transform Array to All Equal Elements, Minimum Number of Coins to be Added, Gas Station
11 Arrays & Hashing Contain Virus, Rotting Oranges, Find The Least Frequent Digit
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Flipkart Interviews

  1. Nail the machine coding round first. Flipkart rejects more candidates here than anywhere else in the loop. Prioritise clean separation of concerns, one or two patterns used deliberately rather than five used decoratively, and a demo that runs.
  2. Leave the last ten minutes for a working demo. A reviewer who cannot run your code cannot score it. Core requirements working beats half-built bonus features every time.
  3. Expect the added requirement. The reviewer will ask you to support a new rule once you are done. Design so that answer is “a new class implementing this interface” rather than “a new branch in this switch”.
  4. Think at e-commerce scale. Flash sales, inventory locking, and fan-out patterns. Flipkart rewards candidates who can argue read-heavy versus write-heavy trade-offs with specifics.
  5. Discuss caching deliberately. CDN behaviour, Redis invalidation, and cache stampede protection are probed in system design. Say what is allowed to be stale and for how long.
  6. Prepare for follow-up depth. “What breaks at ten times this traffic?” is a standard escalation. Have answers ready for hot partitions, the celebrity product problem, and retry storms.
  7. Keep DSA at clean medium. The tagged list above skews medium. Spend the marginal hour on implementation quality and edge cases rather than exotic algorithms.

Other Company Prep


Round structures, durations, and the presence of an online assessment reflect commonly reported candidate experience rather than published Flipkart documentation. The machine coding time box in particular varies between reports, and loops differ by level, org, and year. Confirm your round list with your recruiter.