Swiggy Interview Prep (SDE 2 / SDE 3)

Swiggy’s loop follows the Indian product company template: an online assessment, machine coding, DSA, a design round, and a hiring manager conversation. Machine coding is the biggest filter — you are expected to produce clean, extensible, running code from a written requirement in a single sitting, with no internet and no outside code.

System design lives in Swiggy’s own problem space: assigning orders to delivery partners, live tracking on a phone with poor connectivity, restaurant and Instamart inventory that must not oversell, and high-throughput event processing behind all of it. At SDE-1 and SDE-2 the design round is often low-level design rather than architecture; from senior upward it becomes a full system design discussion.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, level, team match
Online Assessment 75-90 min Coding at medium level, sometimes one SQL question
Machine Coding 90-120 min Running program, class design, extensibility
Problem Solving (DSA) ~60 min Medium problems, time and space cost
Design Round 45-60 min LLD at SDE 2, system design from senior
Hiring Manager 45-60 min Ownership, projects, fundamentals
HR Discussion 20-30 min Motivation, notice period, logistics

Machine coding eliminates most candidates, and the reported time box runs from ninety minutes to two hours. Some loops add an external bar raiser round that mixes DSA with low-level design, and the assessment platform varies between reports, so confirm both with your recruiter. The exact round set shifts by level and team: not every loop has an online assessment, and the design round changes character entirely between SDE-2 and senior.


What Swiggy Actually Tests

Derived from 36 reported Swiggy-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 6 17%
Medium 25 69%
Hard 5 14%

The list skews Easy and Medium. Speed and clean code matter more here than exotic algorithms.

Where those problems fall by pattern:

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

Swiggy Signature Problems

These rank high on Swiggy’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 Maximize Area of Square Hole in Grid Sorting + Array Medium 4 of 142 LeetCode →
2 Count Good Meals Hash Table + Array Medium 4 of 142 LeetCode →
3 Distinct Subsequences DP Hard 11 of 142 Solve →
4 Edit Distance DP Medium 22 of 142 Solve →
5 Count Days Without Meetings Sorting + Array Medium 4 of 142 LeetCode →
6 Fair Candy Swap Binary Search Easy 6 of 142 LeetCode →
7 Unique Binary Search Trees BST + Binary Tree Medium 8 of 142 LeetCode →
8 Daily Temperatures Monotonic Stack Medium 25 of 142 Solve →
9 Minimum Number of Work Sessions to Finish the Tasks Bitmask + Backtracking Medium 2 of 142 LeetCode →
10 Maximum Score From Removing Substrings Stack + Greedy Medium 7 of 142 LeetCode →
11 Two City Scheduling Hungarian Algorithm + Successive Shortest Path Algorithm Medium 6 of 142 LeetCode →
12 Sum of Two Integers Bit Manipulation Medium 7 of 142 Solve →
13 K Closest Points to Origin K-D Tree + Quickselect Medium 11 of 142 LeetCode →
14 Design Twitter Linked List + Design Medium 14 of 142 LeetCode →

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


System Design (HLD) Problems Asked at Swiggy

# Problem Difficulty Link
1 Zomato / Swiggy (Food Delivery) Advanced Read →
2 Uber / Lyft (Ride Sharing) Advanced Read →
3 Nearby / Proximity Service Intermediate Read →
4 Delayed Trigger Service Advanced Read →
5 Distributed Job Scheduler Advanced Read →
6 Search Autocomplete (Restaurant and Dish Search) Intermediate Read →
7 Notification System Intermediate Read →
8 Rate Limiter Beginner Read →

LLD / Machine Coding Problems Asked at Swiggy

Reported machine coding problems cluster around order flow, inventory, and small games with clear rules. Practice typing a full solution against a clock, in memory, with a demonstrable main flow.

# Problem Difficulty Link
1 Ride Matching (Partner Assignment) Intermediate Read →
2 Order Management System Intermediate Read →
3 Inventory Management Intermediate Read →
4 Restaurant Booking Intermediate Read →
5 Delivery Slot Booking Intermediate Read →
6 Splitwise Intermediate Read →
7 Snake and Ladder Intermediate Read →
8 Parking Lot Beginner Read →

DSA Problems Asked at Swiggy

31 problems across 8 pattern groups. Each group is allocated in proportion to its real share of Swiggy’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. All 8 on the list.

# Problem Pattern Difficulty Link
1 Distinct Subsequences DP Hard Solve →
2 Best Time to Buy and Sell Stock DP Easy Solve →
3 Edit Distance DP Medium Solve →
4 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
5 Maximum Product Subarray DP Medium Solve →
6 Maximum Profit in Job Scheduling Binary Search + DP Hard Solve →
7 Maximum Subarray Divide and Conquer + DP Medium Solve →
8 Minimum Number of Work Sessions to Finish the Tasks Bitmask + Backtracking Medium LeetCode →

Arrays & Hashing

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

# Problem Pattern Difficulty Link
9 Maximize Area of Square Hole in Grid Sorting + Array Medium LeetCode →
10 Count Good Meals Hash Table + Array Medium LeetCode →
11 Minimum Value to Get Positive Step by Step Sum Prefix Sum Easy Solve →
12 Count Days Without Meetings Sorting + Array Medium LeetCode →
13 First Missing Positive Hash Table + Array Hard Solve →
14 Immediate Food Delivery II Database Medium LeetCode →
15 Subarray Sum Equals K Prefix Sum Medium Solve →

Sliding Window & Two Pointers

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

# Problem Pattern Difficulty Link
16 Happy Number Floyd Cycle + Two Pointers Easy Solve →
17 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
18 Merge Sorted Array Two Pointers Easy Solve →
19 Minimum Window Substring Sliding Window Hard Solve →
20 Sort Colors Bubble Sort + Quicksort Medium Solve →

Stack & Monotonic Stack

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

# Problem Pattern Difficulty Link
21 Next Greater Element I Monotonic Stack Easy Solve →
22 Daily Temperatures Monotonic Stack Medium Solve →
23 Maximum Score From Removing Substrings Stack + Greedy Medium LeetCode →

Graphs

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

# Problem Pattern Difficulty Link
24 Course Schedule DAG + Topological Sort Medium Solve →
25 Longest Consecutive Sequence Union-Find 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 2 on the list.

# Problem Pattern Difficulty Link
26 Design Twitter Linked List + Design Medium LeetCode →
27 LRU Cache Doubly Linked List + Design Medium Solve →

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

# Problem Pattern Difficulty Link
28 Fair Candy Swap Binary Search Easy LeetCode →
29 Koko Eating Bananas Binary Search Medium Solve →

Intervals, Greedy & Sorting

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

# Problem Pattern Difficulty Link
30 Merge Intervals Quicksort Medium Solve →
31 Two City Scheduling Hungarian Algorithm + Successive Shortest Path Algorithm Medium LeetCode →

Swiggy’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 8 (22%) Distinct Subsequences, Best Time to Buy and Sell Stock, Edit Distance
2 Arrays & Hashing High 7 (19%) Maximize Area of Square Hole in Grid, Count Good Meals, Minimum Value to Get Positive Step by Step Sum
3 Sliding Window & Two Pointers High 5 (14%) Happy Number, Longest Substring Without Repeating Characters, Merge Sorted Array
4 Stack & Monotonic Stack Medium-High 3 (8%) Next Greater Element I, Daily Temperatures, Maximum Score From Removing Substrings
5 Graphs Medium-High 2 (6%) Course Schedule, Longest Consecutive Sequence
6 Design (Coding) Medium-High 2 (6%) Design Twitter, LRU Cache
7 Binary Search Medium 2 (6%) Fair Candy Swap, Koko Eating Bananas
8 Intervals, Greedy & Sorting Medium 2 (6%) Merge Intervals, Two City Scheduling

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


Dispatch, Tracking and Inventory: What the Design Round Probes

Prompts arrive as product surfaces. The underlying problem is nearly always assignment under contention, a stream you cannot pause, or stock that must not oversell.

If the prompt is about The real problem is Go deep on
Assigning an order to a delivery partner Matching under contention Candidate set by proximity and current load, offer with a timeout, leases so two dispatchers cannot claim one partner, what happens when everyone declines
Finding partners near a restaurant Indexed proximity search Geohash or H3 cells, boundary fan-out, update rate versus query rate, how stale a position may be
Live order tracking Push to a phone on a bad network WebSockets versus SSE versus polling, reconnect and backfill, interpolating between pings, battery cost of frequent updates
Order state and cancellations A long-lived state machine Explicit states and legal transitions, idempotent updates, compensation when the restaurant cancels after payment
Restaurant or Instamart availability Distributed inventory truth Authoritative ledger versus cached availability, reservation with expiry, reconciliation with the partner system
Delivery time estimates Read-heavy computation over changing inputs Precomputed segment and prep times, recalculation triggers, degrading to a coarse promise rather than failing
Surge pricing or partner incentives Windowed aggregation over a stream Tumbling windows per zone, late events, pinning a quote for the life of a cart
Promotions and coupons Correctness under concurrency Single-use enforcement, per-user limits, and why this is a ledger problem rather than a counter

The question that settles the round: which piece of this is allowed to be wrong, and for how long? Partner position, yes, for a few seconds. Stock, order state, and money, no.


Where the Machine Coding Round Goes Wrong

The failures are consistent enough to list. Almost none of them are about algorithmic ability.

  • Nothing runs at the end. The single most common rejection. Build the smallest end-to-end path first, then add features on top of something that already works.
  • Reading the spec in order. Requirement four usually changes the data model implied by requirement one. Read all of it, list the entities, then start.
  • One class doing everything. A service object holding all the state and all the logic reads as inexperience even when the output is correct.
  • Patterns as decoration. A factory wrapping a single constructor costs you credibility. One or two patterns, chosen because the spec needs them, is the right amount.
  • Persistence and frameworks. Reports describe no internet access. In-memory collections, no database, no dependency injection container, nothing that can fail to start.
  • Threads for show. Add concurrency only where the requirement asks, and then make it actually correct. A race the interviewer spots is worse than a single-threaded solution.
  • No time left to explain. The discussion afterwards carries real weight. Leave a few minutes to walk the model and name the trade-offs you took.

Behavioural Round

# Question
1 Tell me about a system you owned end to end. Where did it break first?
2 Tell me about a peak-load event — a match day, a festival, a promotion. What did you prepare and what surprised you?
3 Tell me about an incident where the fix and the root cause were different things.
4 Tell me about a time you had to choose between shipping and getting it right.
5 Tell me about a time you disagreed with a product decision.
6 Tell me about a service you had to make cheaper rather than faster.
7 Tell me about a time you worked with operations or a non-engineering team.
8 Why Swiggy, and which part of the business interests you?

Swiggy is a logistics business with a software front end, so the stories that land involve the physical world intruding: a partner app losing connectivity, a restaurant marking items unavailable mid-order, demand spiking in one neighbourhood. Interviewers respond to engineers who have operated something live rather than only built it.


13-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) Distinct Subsequences, Best Time to Buy and Sell Stock, Edit Distance
2 Dynamic Programming (part 2) Trapping Rain Water, Maximum Product Subarray, Maximum Profit in Job Scheduling
3 Arrays & Hashing (part 1) Maximize Area of Square Hole in Grid, Count Good Meals, Minimum Value to Get Positive Step by Step Sum
4 Arrays & Hashing (part 2) Count Days Without Meetings, First Missing Positive, Immediate Food Delivery II
5 Sliding Window & Two Pointers Happy Number, Longest Substring Without Repeating Characters, Merge Sorted Array
6 Stack & Monotonic Stack Next Greater Element I, Daily Temperatures, Maximum Score From Removing Substrings
7 Graphs Course Schedule, Longest Consecutive Sequence
8 Design (Coding) Design Twitter, LRU Cache
9 Binary Search Fair Candy Swap, Koko Eating Bananas
10 Intervals, Greedy & Sorting Merge Intervals, Two City Scheduling
11 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
12 Revision Redo the problems you failed or needed a hint on.
13 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Swiggy Interviews

  1. Machine coding is make-or-break. Practice writing full object-oriented solutions in ninety minutes with one or two patterns used deliberately. A working main method with real output matters more than perfect coverage.
  2. Think about delivery logistics. Dispatch and routing are the core of the business. Show awareness of geo-queries, partner assignment under contention, and order state machines in the design round.
  3. Expect follow-ups on real-time. “How does the customer see the rider moving?” is close to guaranteed. Know WebSockets versus SSE versus polling, and how location pings flow through the system.
  4. Handle inventory races explicitly. Reported machine coding problems include inventory for a high-scale service, and the interviewer pushes on stock depletion with concurrent buyers. Reservation with expiry, conditional updates, and what the loser of the race sees.
  5. Keep DSA at clean medium. Swiggy coding rounds sit at LeetCode medium. Implementation quality and edge case handling beat exotic algorithms here.
  6. Know which numbers can be stale. Partner position can be seconds old; restaurant availability and order state cannot. Saying this explicitly is what separates a senior answer.
  7. Rehearse without the internet. Reports describe machine coding with no internet access and no outside code, so practice with your own libraries only and a blank editor.

Other Company Prep


Round structures, durations, assessment platform, and the presence of a bar raiser round reflect commonly reported candidate experience rather than published Swiggy documentation. The reported question pool behind the tables on this page is small, so treat them as a sample of style rather than a syllabus, and confirm your round list with your recruiter.