Skip to main content

Posts

Showing posts from May, 2026

Design an Elevator/Lift system

Problem Statement Design an elevator system for a multi floor building. The design should be able to handle elevator requests from different floors, move elevators in the correct direction, and stop at requested floors efficiently. The elevator should also maintain its current state such as direction, floor position, and movement status. Asked In Companies Microsoft Amazon Google Uber Oracle Salesforce Adobe Apple Meta LinkedIn Atlassian Intuit Walmart Flipkart PayPal Functional Requirements The design should support multiple elevators Users should be able to request an elevator from any floor Users inside the elevator should be able to select destination floors The elevator should move in upward and downward directions The design should track the current floor of each elevator The design should maintain the current state of the elevator such as moving, idle,...

Design a Movie Ticket Booking system

Problem Statement Design a movie ticket booking system that allows users to view movies, select shows, book seats, and cancel tickets. The design should ensure that seats cannot be double booked and should properly update seat availability when a booking is cancelled. Asked In Companies Amazon Flipkart Google Microsoft Walmart Oracle Salesforce Adobe PayPal Uber Atlassian MakeMyTrip Functional Requirements The design should support multiple movies Each movie can have multiple shows Users should be able to view available seats for a show A user should be able to book one or more seats A booked seat cannot be booked again The design should support ticket cancellation Cancelled seats should become available again The design should generate a booki...

Design a Snake and Ladder game

Problem Statement Design a Snake and Ladder game where multiple players move across a board based on dice rolls. The game should support snakes and ladders placed at different positions on the board. If a player lands on the start of a ladder, they should climb up to a higher position. If a player lands on the mouth of a snake, they should slide down to a lower position. The game continues until one of the players reaches the final cell on the board. Asked In Companies Amazon Microsoft Google Adobe Atlassian Oracle PayPal Meta LinkedIn Apple Salesforce Intuit Functional Requirements The design should support multiple players The board should contain snakes and ladders Players should move based on dice rolls If a player lands on a ladder, they shoul...