📣 黑五价提前开抢|VIP一年通行证5折,蓝莓、Offer多多同步特惠
回复: 10
跳转到指定楼层
上一主题 下一主题
收起左侧

云厨房面经

 
🔗
匿名用户-KYSQI  2022-7-19 21:34:50 |倒序浏览

2022(7-9月) 码农类General 本科 全职@cloudkitchens - 猎头 - Onsite  | 🙁 Negative 😐 Average | Fail | 在职跳槽

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
电面 OOD - parse menu:
  1. You have been tasked with parsing menus from a large restaurant group. Each menu is streamed to clients via a provided interface. You must design object(s) that represents a menu and can be instantiated with data from the provided interface. Your design should contain an appropriate class structure to contain the parsed data, as well as a function or set of functions to perform the parsing.
  2. Consumers will use your object(s) to access a complete representation of the data sent by the menu stream after it has finished loading. Your objects should provide easy access to the full representation of the menu. It should be possible to reconstruct the menu stream from your object.
  3. The menu stream represents a list of menu items. Each item in the stream is a menu item, and each item will be separated by an empty string. The attributes of each item are as follows:
  4.   Line 0: The ID of the item
  5.   Line 1: The item type, either CATEGORY, ENTREE or OPTION
  6.   Line 2: The name of the item
  7.   Line 3: The price of the item for ENTREE and OPTION. Not present for CATEGORY items.
  8.   Any other line: A list of item IDs that are linked to the current item. OPTIONs do not have any linked items.
  9. Stream Example:
  10. 4
  11. ENTREE
  12. Spaghetti
  13. 10.95
  14. 2
  15. 3
  16. 1
  17. CATEGORY
  18. Pasta
  19. 4
  20. 5
  21. 2
  22. OPTION
  23. Meatballs
  24. 1.00
  25. 3
  26. OPTION
  27. Chicken
  28. 2.00
  29. 5
  30. ENTREE
  31. Lasagna
  32. 12.00
  33. 6
  34. ENTREE
  35. Caesar Salad
  36. 9.75
  37. 3
  38. Stream Interface Example:
  39. interface ‍‍‍‌‌‌‍‍‍‍‍‍‌‍‌‍‌‌MenuStream {
  40.     String nextLine(); // Returns null when stream is empty
  41. }
复制代码
VO - 四轮

1. 3小时写个
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
stem design那轮。讲的时候面试官思路明显不在一条线上。。。反正挺迷的。。。


评分

参与人数 6大米 +20 收起 理由
supermango + 1 很有用的信息!
oxygen300 + 1 Thank you
Squall_Lee + 1 Thanks a lot !
dundun1990 + 1 赞一个
匿名用户-MLWJT + 15

查看全部评分


上一篇:2022新鲜狗家面试题 (求加米~~~~~~~)
下一篇:Binance Onsite
地里匿名用户
推荐
匿名用户-66U13  2022-8-19 00:43:17
这公司不去也罢,击鼓传花的节奏,现在已经是金字塔下端的下线了,当然如果是学技术的态度应该还可以。
回复

使用道具 举报

地里匿名用户
推荐
匿名用户-D3M94  2022-8-28 13:22:25
本帖最后由 匿名 于 2022-8-27 22:24 编辑

Thank you for sharing the experience, take my rice. Was this in person onsite?

评分

参与人数 1大米 +1 收起 理由
pika7766 + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

🔗
Squall_Lee 2022-8-13 01:44:39 | 只看该作者
全局:
Thanks a lot !
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-FHGQH  2022-8-19 00:26:58
给力 谢谢分享 云厨房的面经不多
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-N59RF  2022-8-28 13:21:55
Thank you

评分

参与人数 1大米 +1 收起 理由
oxygen300 + 1 +1

查看全部评分

回复

使用道具 举报

🔗
sdyxz300 2022-9-9 08:20:54 | 只看该作者
全局:
链接挂了 楼主
回复

使用道具 举报

🔗
王小强 2022-10-3 17:05:50 | 只看该作者
全局:
good 谢谢分享
回复

使用道具 举报

全局:
我面的题也是这个!
回复

使用道具 举报

全局:
匿名用户 发表于 2022-08-18 09:43:17
这公司不去也罢,击鼓传花的节奏,现在已经是金字塔下端的下线了,当然如果是学技术的态度应该还可以。
没明白啥意思啊?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表