Design Perishable Grocery Replenishment Ranges

Last updated: August 9, 2026

Quick Overview

Design an algorithm to determine the replenishment ranges for perishable grocery items in a shop logistics system.

C3 AI
ML System Design
Data Scientist
C3 AI
August 9, 2026
Data Scientist
Technical Screen
ML System Design
Medium

0

0

9 solved


Design an algorithm to determine the replenishment ranges for perishable grocery items in a shop logistics system.

This question is typically asked in the technical screen round for data scientist roles at C3 AI to evaluate the candidate's ability to design practical machine learning systems. Interviewers are looking for candidates who can apply their knowledge of algorithms and data-driven decision-making to solve real-world problems, particularly in the context of inventory management for perishable goods.

What the Interviewer Expects
  • Identify key factors affecting perishable inventory levels.
  • Propose a structured approach to designing the replenishment algorithm.
  • Discuss potential data sources and features for the model.
  • Evaluate trade-offs and scalability of the proposed solution.
  • Consider the impact of seasonality and demand forecasting.
Key Topics to Cover
Inventory Management
Demand Forecasting
Machine Learning Algorithms
Data Sources
Trade-offs in System Design
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you handle seasonality in demand for perishable items?
  • What metrics would you use to evaluate the performance of your replenishment algorithm?
  • Can you discuss potential challenges you might face in implementing this system?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

To design an effective replenishment algorithm for perishable groceries, we need to understand the key requirements:

  1. Inventory Levels: Track current stock levels of each perishable item.
  2. **D...
High-Level Design

The high-level design of the replenishment system involves several components:

  • Data Collection: Gather data from sales logs, inventory levels, and supplier information.
  • **Demand Prediction Mod...

Submit Your Answer
Markdown supported

Related Questions