<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVGHS6G" height="0" width="0" style="display:none;visibility:hidden"></iframe>

Remitly计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(1)
OOD(1)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
全部(1)
OOD(1)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
1.Design and Implement a Restaurant System
1. Design and Implement a Restaurant System
Design and implement a system for a restaurant with the following requirements: The constructor of the restaurant takes in the maximum allowed time to order and MenuItems (you define MenuItem). You need to implement methods to order a meal, get the number of cooks, increment time, and get the current time at the restaurant. The restaurant starts with 0 cooks, time starts at 0, and cooks are added if the maximum wait time will be exceeded by the current order. Cooks can only work on one meal at a time and will not decrease once added. Each meal is assigned to the cook that can start it the soonest. You do not need to implement the method to print current orders.