Swiggy

Swiggy

Leading Indian food delivery aggregator with complex real-time logistics.

4 Rounds ~15 Days Hard
Start Mock Interview

The Interview Loop

Recruiter Screen (30 min)

Standard fit check, behavioral questions, and resume overview.

Technical Loop (3-4 Rounds)

Deep dive into domain knowledge, coding, and system design.

Interview Question Bank

Backend Engineer Coding medium

Given a list of orders with their preparation start and end times, find the maximum number of concurrent orders being prepared at any given time.

#Arrays #Sorting #Sweep Line Algorithm
Backend Engineer Coding medium

Merge K sorted arrays/lists. (Context: Merging timestamped logs from different microservices).

#Heaps #Divide and Conquer #Pointers
Backend Engineer Coding medium

Given a grid representing a city map with restaurants, customers, and roadblocks, find the shortest path for a delivery executive to pick up and deliver the food.

#Graphs #BFS #Shortest Path
Backend Engineer Coding medium

Find the Top K frequent elements in a stream of data (e.g., finding top K trending dishes in a locality).

#Heaps #HashMaps #Bucket Sort
Backend Engineer Coding medium

Given an array of integers representing restaurant ratings over time, find the sliding window maximum of size K.

#Sliding Window #Deque #Arrays
Backend Engineer Coding easy

Find the longest palindromic substring in a given string.

#Strings #Dynamic Programming #Two Pointers
Backend Engineer Coding hard

You have a list of delivery executives and a list of orders. Assign orders to executives such that the total distance traveled is minimized.

#Graphs #Bipartite Matching #Hungarian Algorithm #Greedy
Data Engineer Coding hard

Implement a rate limiter using the Token Bucket algorithm to throttle incoming API requests from restaurant POS systems.

#Object-Oriented Programming #Concurrency #System Design
Data Engineer Coding easy

Given an array of integers representing daily order counts, write a function to find the maximum sum of a contiguous subarray (Kadane's Algorithm).

#Arrays #Dynamic Programming
Data Engineer Coding hard

Write a program to find the shortest delivery route for a delivery executive given a grid with obstacles, a starting point, a restaurant location, and a customer location.

#Graphs #BFS #Pathfinding
Data Engineer Coding medium

Given a list of delivery partner active hours as intervals [start_time, end_time], write a function to merge all overlapping intervals to find the total active duration.

#Arrays #Sorting #Intervals
Data Engineer Coding easy

Given a massive web server log file, write a script to find the top 10 IP addresses making requests to the checkout API.

#File I/O #Hash Maps #Heaps
Data Scientist Coding medium

Write a Python function to find the maximum overlapping active orders given a list of order start and end times.

#Sorting #Intervals #Sweep Line Algorithm
Data Scientist Coding easy

Write a Python function to calculate the Haversine distance between two GPS coordinates (restaurant and customer).

#Math #Geospatial #Python
Data Scientist Coding medium

Given an array of integers representing order delivery times, write a function to find the longest contiguous subarray with an average delivery time below a given threshold.

#Sliding Window #Arrays #Prefix Sum
Data Scientist Coding easy

Write a Python script to parse a large JSON log file of user clicks and return the top 5 most frequently clicked restaurant IDs.

#Data Parsing #Hash Maps #Heaps #Python
Data Scientist Coding hard

Given a dataset of delivery coordinates, write an algorithm to find the optimal route for a delivery executive carrying batched orders.

#Graph Theory #Traveling Salesperson Problem #Heuristics #Dynamic Programming
Frontend Engineer Coding medium

Given an array of overlapping intervals representing a restaurant's operating hours, write a function to merge all overlapping intervals.

#Arrays #Sorting #Logic
Frontend Engineer Coding medium

Write a function to find the length of the longest substring without repeating characters in a given string.

#Strings #Sliding Window #Hash Map
Frontend Engineer Coding medium

Implement an LRU (Least Recently Used) Cache in JavaScript. It should have `get(key)` and `put(key, value)` methods, both operating in O(1) time complexity.

#Data Structures #Map #Linked List
Machine Learning Engineer Coding medium

Given a delivery bag with a maximum weight capacity W, and a list of orders with specific weights and delivery payouts, write a function to maximize the payout.

#Dynamic Programming #Optimization #Knapsack
Machine Learning Engineer Coding medium

Write a Python function to compute the NDCG@K given a list of predicted scores and a list of true relevance labels.

#Python #Array Manipulation #Math
Machine Learning Engineer Coding hard

A delivery partner needs to pick up orders from 2 restaurants and deliver them to 2 customers. Write an algorithm to find the shortest valid route (pickups must precede respective drop-offs).

#Graphs #Shortest Path #Backtracking #TSP
Machine Learning Engineer Coding medium

Implement a Trie data structure to support search autocomplete for Swiggy Instamart items. It should support insert, search, and return top 3 matching prefixes.

#Trees #String Manipulation #Tries #Design
Machine Learning Engineer Coding medium

Implement the K-Means clustering algorithm from scratch in Python using NumPy. Do not use scikit-learn.

#Machine Learning Algorithms #Python #Math #NumPy
Machine Learning Engineer Coding easy

Write a Python script using Pandas to perform stratified sampling on a dataset of 10 million Swiggy orders, stratified by 'city_id'.

#Python #Pandas #Data Processing
Machine Learning Engineer Coding medium

Given a list of active time intervals for a delivery executive (e.g., [[10, 12], [11, 15], [16, 18]]), write a function to merge overlapping intervals to calculate total active hours.

#Arrays #Sorting #Intervals
Software Engineer Coding hard

Write a program to assign N orders to M delivery executives such that the total wait time is minimized.

#Dynamic Programming #Bipartite Matching #Graphs
Software Engineer Coding medium

Given a matrix of 1s (serviceable areas) and 0s (unserviceable areas), find the number of distinct delivery zones (islands).

#Graphs #Depth-First Search #Matrix
Software Engineer Coding hard

Implement a trie-based autocomplete system for searching restaurant names and dishes that returns the top 3 matches based on historical search frequency.

#Trie #Design #Strings
Software Engineer Coding medium

Find the maximum number of active orders in any sliding window of 'W' minutes given a stream of order timestamps.

#Sliding Window #Queues #Two Pointers
Software Engineer Coding hard

Design a data structure to find the top K trending dishes in a specific geohash in real-time from a continuous stream of orders.

#Heaps #Hash Table #Stream Processing
Software Engineer Coding medium

Given a grid representing an Instamart warehouse where 0 is empty, 1 is fresh produce, and 2 is rotten produce, find the minimum minutes until all produce rots.

#Graphs #Breadth-First Search #Matrix
Software Engineer Coding medium

Implement an LRU Cache to store the most frequently accessed restaurant menus. It should support get() and put() operations in O(1) time.

#Design #Hash Table #Linked List
Software Engineer Coding hard

Calculate the minimum time required to deliver an order from a restaurant to a customer considering a city map represented as a weighted graph where edges are traffic delays.

#Graphs #Dijkstra's Algorithm #Shortest Path
Software Engineer Coding medium

Find the K closest delivery executives to a restaurant given an array of their [x, y] coordinates and the restaurant's location.

#Heaps #Geometry #Sorting
Software Engineer Coding medium

Given an array of delivery intervals [start, end], merge all overlapping delivery windows to find the continuous busy periods for a delivery executive.

#Arrays #Sorting #Intervals

Difficulty Radar

Based on recent AI-sourced data.

Meet Your Interviewers

The "Standard" Interviewer

Senior Engineer

Focuses on core competencies, system constraints, and clear communication.

Simulate

Unwritten Rules

Think Out Loud

Always explain your thought process before writing code or drawing architecture.

Practice Now