Machine Coding Round at Meesho – My Experience!

meesho logo
meesho
SDE-11.2 years
November 17, 20250 reads

Summary

I recently interviewed at Meesho for an SDE-1 role, where I faced a challenging machine coding round focused on building an in-memory inventory management system with specific features, including time-based inventory restoration.

Full Experience

I recently had an interview at Meesho for an SDE-1 position, which featured a particularly interesting machine coding round. My task was to design and implement a small but realistic in-memory inventory management system for an e-commerce platform within a 60-minute timeframe. This experience was a great test of my ability to integrate system design principles with clean coding and practical problem-solving under pressure. I found it to be a very engaging and insightful part of the interview process.

Interview Questions (1)

Q1
In-memory E-commerce Inventory Management System
System DesignHard

The core challenge was to construct a compact yet realistic inventory management system for an e-commerce platform, to be completed within 60 minutes. The system needed to adhere to several key requirements:

  • Implement functionality for creating new products and assigning an initial inventory.
  • Enable fetching the current available inventory for any product.
  • Manage inventory blocking when a user initiates a payment transaction.
  • Ensure permanent reduction of inventory upon successful payment confirmation.
All underlying data structures were restricted to in-memory types such as Maps or Lists. A driver class was also required to showcase all implemented functionalities.

A crucial bonus requirement involved implementing a timeout mechanism: if an order remained unconfirmed for five minutes, the previously blocked inventory for that order had to be automatically restored. This particular aspect added a significant layer of complexity, demanding careful thought around state management and time-driven rollbacks.

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!