Object-Oriented Programming · Coinbase · Medium
Requirements The core problem is a CRUD application for restaurants, dishes, and orders. Different interviewers add their own extensions: Level 1–2 (always): Implement restaurant registration, dish creation, order placement, and basic queries (e.g., list all dishes for a restaurant, compute order totals). Level 3 (common): Add a method getAveragePrice(dish, [startTime, endTime]) that uses binary search over a sorted price-history list for each dish. Level 4 (frequent):…