Swiggy | BarRaiser | SDE 2

swiggy logo
swiggy
· SDE 2
March 27, 2026 · 3 reads

Summary

I attended a BarRaiser interview for an SDE 2 position at Swiggy where I was asked a LeetCode DSA problem and a system design question.

Full Experience

DSA : https://leetcode.com/problems/asteroid-collision/description/ LLD: Design a notification system with options for :

  1. sms
  2. email
  3. in app
  4. history of notifications
  5. scheduling of notifications

create class design, api structure ,db schema some discussions about design patttern used and schedulings with asynchronous processes in mind

#swiggy

Interview Questions (2)

1.

Asteroid Collision

Data Structures & Algorithms·Medium

Given an array of integers representing asteroids moving in a one‑dimensional space, each asteroid moves either to the left (negative value) or to the right (positive value). When two asteroids meet, the smaller one (by absolute value) explodes; if they are equal, both explode. Return the state of the asteroids after all collisions.

Example:

Input: [5, 10, -5]
Output: [5, 10]

The problem requires using a stack to simulate the collisions.

2.

Design Notification System

System Design

Design a notification system that supports:

  1. SMS notifications
  2. Email notifications
  3. In‑app notifications
  4. History of notifications
  5. Scheduling of notifications

The candidate was asked to create class designs, API structures, and a database schema. Discussion included design patterns and asynchronous processing for scheduling.

📣 Found this helpful? Please share it with friends who are preparing for interviews!

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!