swiggy logo
Swiggy· SDE 2

Swiggy | BarRaiser | SDE 2

Posted
27 Mar 2026
426 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.

How it went

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

Questions asked (2)

  1. 01

    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.

    Open the problem
  2. 02

    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.

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Swiggy recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

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