31 problems · 9 Easy, 18 Medium, 4 Hard · Ranked #61 of 458
Difficulty breakdown
9 Easy
29% · avg 23%
18 Medium
58% · avg 59%
4 Hard
13% · avg 18%
Top topics
array
67.7%
hash-table
35.5%1.6x
sorting
29%2x
dynamic-programming
19.4%
stack
16.1%1.9x
string
16.1%
Interview profile
Based on 31 reported problems, Swiggy interviews are in line with industry averages - 13% Hard vs 18% overall. The majority (58%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.
Compared to the industry average, Swiggy puts unusual emphasis on monotonic-stack (9.7% of problems, 3.3x the industry average), divide-and-conquer (9.7% of problems, 2.3x the industry average), sorting (29% of problems, 2x the industry average). If you're short on time, these are the categories to double down on.
The most common topics are array (67.7%), hash-table (35.5%), sorting (29%), dynamic-programming (19.4%). Problems below are sorted by frequency, the ones at the top are asked most often.
All 31 problems
Problem
Difficulty
Frequency
Topics
Maximize Area of Square Hole in Grid
You are given the two integers, n and m and two integer arrays, hBars and vBars. The grid has n + 2 horizontal and m + 2 vertical bars, creating 1 x 1 unit cell...
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order...
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and num...
Alice and Bob have a different total number of candies. You are given two integer arrays aliceSizes and bobSizes where aliceSizes[i] is the number of candies of...
There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, b...
Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait aft...
Minimum Number of Work Sessions to Finish the Tasks
There are n tasks assigned to you. The task times are represented as an integer array tasks of length n, where the ith task takes tasks[i] hours to finish. A wo...
A company is planning to interview 2n people. Given the array costs where costs[i] = [aCosti, bCosti], the cost of flying the ith person to city a is aCosti, an...
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.
Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k, return the k closest points to the origin (0, 0).
You are given the two integers, n and m and two integer arrays, hBars and vBars. The grid has n + 2 horizontal and m + 2 vertical bars, creating 1 x 1 unit cell...
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order...
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and num...
Alice and Bob have a different total number of candies. You are given two integer arrays aliceSizes and bobSizes where aliceSizes[i] is the number of candies of...
There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, b...
Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait aft...
There are n tasks assigned to you. The task times are represented as an integer array tasks of length n, where the ith task takes tasks[i] hours to finish. A wo...
A company is planning to interview 2n people. Given the array costs where costs[i] = [aCosti, bCosti], the cost of flying the ith person to city a is aCosti, an...
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.
Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k, return the k closest points to the origin (0, 0).
MediumLikely
arraymathdivide-and-conquer
How often are these problems asked?
Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Swiggy interviews.
Very Likely
75-100%
Likely
50-74%
Sometimes
25-49%
Rare
0-24%
Preparing for your Swiggy coding interview
Swiggy interviews focus heavily on array, hash-table, sorting problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.
Beyond solving problems, practice explaining your approach. Swiggy interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.
What coding problems does Swiggy ask in interviews?add
Swiggy has been reported to ask 31 distinct coding problems. The most common topics are array, hash-table, sorting. 9 are Easy difficulty, 18 are Medium, and 4 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.
How hard are Swiggy coding interviews?add
Based on 31 reported problems, Swiggy interviews are in line with industry averages - 13% Hard vs 18% overall. 58% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.
How should I prepare for a Swiggy coding interview?add
Start with the highest-frequency problems listed on this page. Focus on the core topics: array, hash-table, sorting. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.
Simulate a real Swiggy coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.