注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 匿名 于 2025-5-7 23:18 编辑
希望大家可以一起学习进步,求大米看面经!!!
# Interview Question: Menu Parsing Design Challenge
**Problem Description**
You are tasked with designing a system to parse menu data streamed from a restaurant platform. Each menu is delivered as a stream of strings, where each menu item is made up of several lines and separated from the next item by an empty string ("eam format.
**Example Stream**
```
123
CATEGORY
Lunch Specials
456
DISH
Burger
8.99
123
789
OPTION
Extra Cheese
0.99
456
```
---
Let me know if you'd like to pair this with example code or add sample input/output! |