PracHub
QuestionsLearningGuidesInterview Prep
|Home/Coding & Algorithms/CloudKitchens

Design a menu manager with enums

Last updated: Mar 29, 2026

Quick Overview

This question evaluates data modeling with enums, efficient data structure selection to meet specified time complexities, API design for CRUD operations, and practical implementation skills including a command-line interface and unit testing.

  • medium
  • CloudKitchens
  • Coding & Algorithms
  • Software Engineer

Design a menu manager with enums

Company: CloudKitchens

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Design and implement a console-based restaurant menu management program. Requirements: ( 1) There are exactly three fixed item categories represented by an enum (e.g., APPETIZER, MAIN, DESSERT). ( 2) Support addItem(name, price, category), updatePrice(name, newPrice), removeItem(name), listAll(), and listByCategory(category). ( 3) Print items using each object's toString() rather than accessing fields via getters; list output grouped by category and sorted alphabetically within each category. ( 4) Choose data structures to achieve O( 1) add/update/remove by name and O(k log k) listing within a category (k = number of items in that category). ( 5) Provide a simple CLI that reads commands from stdin and executes them, plus basic unit tests.

Quick Answer: This question evaluates data modeling with enums, efficient data structure selection to meet specified time complexities, API design for CRUD operations, and practical implementation skills including a command-line interface and unit testing.

Related Interview Questions

  • Implement menu parser and serializer - CloudKitchens (medium)
  • Design receipt system with combo discounts - CloudKitchens (medium)
  • Design an in-memory cloud storage system - CloudKitchens (medium)
  • Implement concurrent order-accept/pickup simulator - CloudKitchens (medium)
|Home/Coding & Algorithms/CloudKitchens

Design a menu manager with enums

CloudKitchens logo
CloudKitchens
Sep 6, 2025, 12:00 AM
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
6
0

Design and implement a console-based restaurant menu management program. Requirements: (

  1. There are exactly three fixed item categories represented by an enum (e.g., APPETIZER, MAIN, DESSERT). (
  2. Support addItem(name, price, category), updatePrice(name, newPrice), removeItem(name), listAll(), and listByCategory(category). (
  3. Print items using each object's toString() rather than accessing fields via getters; list output grouped by category and sorted alphabetically within each category. (
  4. Choose data structures to achieve O(
  5. add/update/remove by name and O(k log k) listing within a category (k = number of items in that category). (
  6. Provide a simple CLI that reads commands from stdin and executes them, plus basic unit tests.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More CloudKitchens•More Software Engineer•CloudKitchens Software Engineer•CloudKitchens Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 9,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.