Hiring Volume
- Total Hires: 150+ freshers
- SDE-1: 135+ selections
- Growth: 12% from 2023
- Locations: Bengaluru, Hyderabad
Download Swiggy placement papers 2024 PDF with previous year online assessment questions, solutions, and exam pattern analysis.
This page contains Swiggy placement papers from 2024 with previous year questions, solutions, and exam patterns. Use these papers to understand the 2024 online assessment pattern and practice with actual questions from Swiggy placement papers 2024.
| Section | Questions | Time | Difficulty | Focus Areas |
|---|---|---|---|---|
| Coding Problem 1 | 1 | 30 min | Medium | Arrays, strings |
| Coding Problem 2 | 1 | 30 min | Hard | Trees, graphs, DP |
| Debugging | 1 | 30 min | Medium | Code fixes |
Total: 3 problems, 90 minutes
Platform: HackerRank or Swiggy’s internal platform
Languages Allowed: Java, C++, Python, Go
Success Rate: ~10-15% cleared OA and advanced to interviews
This section contains real coding questions from Swiggy placement papers 2024 based on candidate experiences from GeeksforGeeks, LeetCode, and interview forums.
Problem Statement: You may complete as many transactions as you like (buy one and sell one share of the stock multiple times). You cannot engage in multiple transactions simultaneously (i.e., you must sell the stock before you buy again).
Example:
Input: prices = [7,1,5,3,6,4]Output: 7Explanation: Buy on day 2 (price = 1) and sell on day 3 (price = 5), profit = 5-1 = 4. Then buy on day 4 (price = 3) and sell on day 5 (price = 6), profit = 6-3 = 3. Total profit = 4+3 = 7.Solution (Java):
public int maxProfit(int[] prices) { int profit = 0; for (int i = 1; i < prices.length; i++) { if (prices[i] > prices[i - 1]) { profit += prices[i] - prices[i - 1]; } } return profit;}Time Complexity: O(n)
Space Complexity: O(1)
Algorithm: Greedy approach - buy before every price increase
Problem Statement: Given an integer n, return the count of binary strings of length n that do not contain consecutive 1’s.
Example:
Input: n = 3Output: 5Explanation: Valid strings: "000", "001", "010", "100", "101"Solution (Java):
public int countBinaryStrings(int n) { if (n == 0) return 0; if (n == 1) return 2;
int[] dp = new int[n + 1]; dp[0] = 0; dp[1] = 2; // "0" or "1" dp[2] = 3; // "00", "01", "10"
for (int i = 3; i <= n; i++) { dp[i] = dp[i - 1] + dp[i - 2]; }
return dp[n];}Time Complexity: O(n)
Space Complexity: O(n)
Algorithm: Dynamic Programming (Fibonacci pattern)
Problem Statement: A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing the relative order of the remaining characters.
Example:
Input: text1 = "abcde", text2 = "ace"Output: 3Explanation: The longest common subsequence is "ace" and its length is 3.Solution (Java):
public int longestCommonSubsequence(String text1, String text2) { int m = text1.length(); int n = text2.length(); int[][] dp = new int[m + 1][n + 1];
for (int i = 1; i <= m; i++) { for (int j = 1; j <= n; j++) { if (text1.charAt(i - 1) == text2.charAt(j - 1)) { dp[i][j] = dp[i - 1][j - 1] + 1; } else { dp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]); } } }
return dp[m][n];}Time Complexity: O(m × n)
Space Complexity: O(m × n)
Algorithm: Dynamic Programming
Problem Statement: Merge k sorted linked lists and return it as one sorted list.
Example:
Input: lists = [[1,4,5],[1,3,4],[2,6]]Output: [1,1,2,3,4,4,5,6]Solution (Java):
public ListNode mergeKLists(ListNode[] lists) { if (lists == null || lists.length == 0) return null;
PriorityQueue<ListNode> pq = new PriorityQueue<>((a, b) -> a.val - b.val);
for (ListNode node : lists) { if (node != null) { pq.offer(node); } }
ListNode dummy = new ListNode(0); ListNode current = dummy;
while (!pq.isEmpty()) { ListNode node = pq.poll(); current.next = node; current = current.next;
if (node.next != null) { pq.offer(node.next); } }
return dummy.next;}Time Complexity: O(n log k) where n is total nodes, k is number of lists
Space Complexity: O(k)
Algorithm: Priority Queue (Min Heap)
Buggy Code:
public void rotate(int[] nums, int k) { int n = nums.length; for (int i = 0; i < k; i++) { int temp = nums[n - 1]; for (int j = n - 1; j > 0; j--) { nums[j] = nums[j - 1]; } nums[0] = temp; }}Issues:
Optimized Solution:
public void rotate(int[] nums, int k) { int n = nums.length; k = k % n; // Handle k > n
// Reverse entire array reverse(nums, 0, n - 1); // Reverse first k elements reverse(nums, 0, k - 1); // Reverse remaining elements reverse(nums, k, n - 1);}
private void reverse(int[] nums, int start, int end) { while (start < end) { int temp = nums[start]; nums[start] = nums[end]; nums[end] = temp; start++; end--; }}Time Complexity: O(n)
Space Complexity: O(1)
Requirements:
Key Components:
Database Design:
API Endpoints:
/orders/:order_id - Get order status/orders/:order_id/status - Update order status/orders/:order_id/tracking - Get delivery trackingHiring Volume
Salary Packages
Question Difficulty
Based on candidate experiences from 2024 Swiggy interviews:
2024 Interview Process:
Common 2024 Interview Topics:
2024 Interview Questions Examples:
Success Tips:
For detailed interview experiences, visit Swiggy Interview Experience page.
Swiggy 2025 Papers
Latest Swiggy placement papers with current year DSA questions and solutions
Swiggy Coding Questions
Complete collection of Swiggy coding problems with solutions
Swiggy Interview Experience
Real interview experiences from candidates who cleared Swiggy placement
Swiggy Preparation Guide
Comprehensive preparation strategy for Swiggy placement process
Swiggy Main Page
Complete Swiggy placement guide with eligibility, process, and salary
Zomato Placement Papers
Similar food delivery company with comparable interview process
Swiggy 2025 Papers
Latest Swiggy placement papers with current year DSA questions and solutions
Swiggy Main Page
Complete Swiggy placement guide with eligibility, process, and salary
Zomato Placement Papers
Similar food delivery company with comparable interview process
Practice 2024 papers to understand Swiggy’s pattern!