Flipkart Machine coding round for SDE-2
Summary
I underwent a machine coding round for an SDE-2 position at Flipkart, where I implemented a simplified food order management system named FoodKart, emphasizing object-oriented design and extensibility.
Full Experience
Last month, I appeared for a machine coding round at Flipkart, where I had to implement a simplified food order management system, named FoodKart. It was a 120-minute round, with 30 minutes for problem briefing and 90 minutes for implementation.
The problem involved designing a system that simulates food ordering from restaurants with in-memory data structures. The challenge tested object-oriented design, modularity, clean coding, and extensibility. No UI or database, just plain backend logic.
Evaluation Round
After two days I got a call for evaluation round, where Interviwer asked me to run my code to make sure my code is passing for all test cases.
Interview Questions (1)
FoodKart: Food Order Management System
Problem Statement
Last month, I appeared for a machine coding round at Flipkart, where I had to implement a simplified food order management system, named FoodKart. It was a 120-minute round, with 30 minutes for problem briefing and 90 minutes for implementation.
The problem involved designing a system that simulates food ordering from restaurants with in-memory data structures. The challenge tested object-oriented design, modularity, clean coding, and extensibility. No UI or database, just plain backend logic.
Key Features to Implement:
-
Onboard new restaurants with menu and processing capacity.
-
Update restaurant menu/prices dynamically.
-
Place orders based on a restaurant selection strategy.
-
Orders must only be accepted if all items are available and capacity allows.
-
Dispatch orders, making room for new ones.
-
Keep track of items served per restaurant.
-
Process a set of commands sorted by timestamp (even if given in random order).
-
[Bonus] Show all dispatched orders.