Flipkart Machine coding round for SDE-2

flipkart logo
flipkart
SDE-2
June 22, 20257 reads

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)

Q1
FoodKart: Food Order Management System
System DesignHard

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:

  1. Onboard new restaurants with menu and processing capacity.

  2. Update restaurant menu/prices dynamically.

  3. Place orders based on a restaurant selection strategy.

  4. Orders must only be accepted if all items are available and capacity allows.

  5. Dispatch orders, making room for new ones.

  6. Keep track of items served per restaurant.

  7. Process a set of commands sorted by timestamp (even if given in random order).

  8. [Bonus] Show all dispatched orders.

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!