Swiggy Coding Interview Questions
25 Swiggy coding interview problems with full optimal solutions — 10 easy, 11 medium, 4 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Swiggy interviewer values, and a FAQ section.
Showing 11 problems of 25
- #11mediumfoundational
11. Add Two Numbers
Add two numbers stored as digits in linked lists in reverse order.
- #12mediumfoundational
12. Longest Substring Without Repeating Characters
Find the length of the longest substring with all distinct characters.
- #13mediumfoundational
13. Longest Palindromic Substring
Return the longest substring of s that reads the same forwards and backwards.
- #14mediumfoundational
14. 3Sum
Find every unique triplet in the array that sums to zero.
- #15mediumfoundational
15. Search in Rotated Sorted Array
Binary search a target in a sorted array that has been rotated at an unknown pivot.
- #16mediumfoundational
16. Permutations
Return every permutation of a distinct-integer array.
- #17mediumfoundational
17. Group Anagrams
Group an array of strings by their anagram equivalence class.
- #18mediumfoundational
18. Merge Intervals
Merge all overlapping intervals in a list and return the result.
- #19mediumfoundational
19. Number of Islands
Count the connected land regions in a 2-D grid of '1's and '0's.
- #20mediumfoundational
20. Course Schedule
Decide whether you can finish all courses given prerequisite pairs.
- #21mediumfoundational
21. Network Delay Time
Compute the time it takes for a signal to reach every node from a source.