# Swiggy Coding Interview Questions

> 41 DSA problems asked in Swiggy coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/swiggy
Last updated: 2026-11-28

41 DSA problems tagged as asked in Swiggy coding interviews and online assessments. Below are all 41: 9 easy, 26 medium and 6 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Swiggy DSA problems, easiest first

1. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
2. [Fair Candy Swap](https://www.internhack.in/learn/dsa/problem/fair-candy-swap) (Easy)
3. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
4. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
5. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
6. [Minimum Value to Get Positive Step by Step Sum](https://www.internhack.in/learn/dsa/problem/minimum-value-to-get-positive-step-by-step-sum) (Easy)
7. [Next Greater Element I](https://www.internhack.in/learn/dsa/problem/next-greater-element-i) (Easy)
8. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
9. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
10. [Continuous Subarray Sum](https://www.internhack.in/learn/dsa/problem/continuous-subarray-sum) (Medium)
11. [Count Days Without Meetings](https://www.internhack.in/learn/dsa/problem/count-days-without-meetings) (Medium)
12. [Count Good Meals](https://www.internhack.in/learn/dsa/problem/count-good-meals) (Medium)
13. [Course Schedule](https://www.internhack.in/learn/dsa/problem/course-schedule) (Medium)
14. [Daily Temperatures](https://www.internhack.in/learn/dsa/problem/daily-temperatures) (Medium)
15. [Design Twitter](https://www.internhack.in/learn/dsa/problem/design-twitter) (Medium)
16. [Edit Distance](https://www.internhack.in/learn/dsa/problem/edit-distance) (Medium)
17. [Immediate Food Delivery II](https://www.internhack.in/learn/dsa/problem/immediate-food-delivery-ii) (Medium)
18. [Integer to Roman](https://www.internhack.in/learn/dsa/problem/integer-to-roman) (Medium)
19. [K Closest Points to Origin](https://www.internhack.in/learn/dsa/problem/k-closest-points-to-origin) (Medium)
20. [Koko Eating Bananas](https://www.internhack.in/learn/dsa/problem/koko-eating-bananas) (Medium)
21. [Letter Combinations of a Phone Number](https://www.internhack.in/learn/dsa/problem/letter-combinations-of-a-phone-number) (Medium)
22. [Longest Palindromic Substring](https://www.internhack.in/learn/dsa/problem/longest-palindromic-substring) (Medium)
23. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
24. [LRU Cache](https://www.internhack.in/learn/dsa/problem/lru-cache) (Medium)
25. [Maximize Area of Square Hole in Grid](https://www.internhack.in/learn/dsa/problem/maximize-area-of-square-hole-in-grid) (Medium)
26. [Maximum Length of Pair Chain](https://www.internhack.in/learn/dsa/problem/maximum-length-of-pair-chain) (Medium)
27. [Maximum Product Subarray](https://www.internhack.in/learn/dsa/problem/maximum-product-subarray) (Medium)
28. [Maximum Score From Removing Substrings](https://www.internhack.in/learn/dsa/problem/maximum-score-from-removing-substrings) (Medium)
29. [Maximum Subarray](https://www.internhack.in/learn/dsa/problem/maximum-subarray) (Medium)
30. [Minimum Number of Work Sessions to Finish the Tasks](https://www.internhack.in/learn/dsa/problem/minimum-number-of-work-sessions-to-finish-the-tasks) (Medium)
31. [Sort Colors](https://www.internhack.in/learn/dsa/problem/sort-colors) (Medium)
32. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
33. [Sum of Two Integers](https://www.internhack.in/learn/dsa/problem/sum-of-two-integers) (Medium)
34. [Two City Scheduling](https://www.internhack.in/learn/dsa/problem/two-city-scheduling) (Medium)
35. [Unique Binary Search Trees](https://www.internhack.in/learn/dsa/problem/unique-binary-search-trees) (Medium)
36. [Distinct Subsequences](https://www.internhack.in/learn/dsa/problem/distinct-subsequences) (Hard)
37. [First Missing Positive](https://www.internhack.in/learn/dsa/problem/first-missing-positive) (Hard)
38. [Maximum Profit in Job Scheduling](https://www.internhack.in/learn/dsa/problem/maximum-profit-in-job-scheduling) (Hard)
39. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
40. [Minimum Window Substring](https://www.internhack.in/learn/dsa/problem/minimum-window-substring) (Hard)
41. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)

## Prepare for the rest of the Swiggy process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
