📣 独立日限时特惠: VIP通行证立减$68
回复: 25
跳转到指定楼层
上一主题 下一主题
收起左侧

🥕 onsite 新题

🔗
匿名用户-NW5UP  2020-11-19 04:22:14 |倒序浏览

2020(10-12月) 码农类General 硕士 全职@instacart - 猎头 - Onsite  | | Fail | 在职跳槽

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

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

x

共4轮
1. Coding - 密码解密,参照这个 -

2. Coding - 第二个coding 是新题
第一题: 给一个target 比如T4, 还有 T1 = 2, T2 = 3, T2 = T3, T4 = T3, 计算出 T4 = 3, 解法就是build一个graph,然后traverse graph一直找到leaf node;
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
问了问最近项目

Feedback是:system design 不够具体,问题考虑不够深入,还有coding 第二轮第二问没写完。。。

最近穷的没米看帖了,求大米呀 :)

评分

参与人数 11大米 +27 收起 理由
solowelkin + 1 给你点个赞!
T012 + 2 很有用的信息!
zsez + 2 给你点个赞!
daniel123 + 1 谢谢
FANJIAYI + 2 很有用的信息!

查看全部评分


上一篇:Qumulo面经
下一篇:飞思布克背靠背加面+team match问题
地里匿名用户
推荐
匿名用户-NW5UP  2020-12-1 03:45:35
databaseinterna 发表于 2020-11-29 01:13
我分数不够,楼主方便的话可以私信下我隐藏部分吗?主要想知道 system design 题目,谢谢。 加米加米~

At Instacart, we have customers that place orders on our website, and we hire personal shoppers whose job it is to go to grocery stores to fulfill those orders.

We give credit cards to our shoppers so they can purchase groceries for orders we've assigned them. Our servers receive an HTTP request from our payment processor every time a shopper swipes the credit card that we give them. The payload looks like this:

{
    shopper_id:  123,
    amount: 300,
    merchant: {
        name: "Target",
        address: "123 Main St"
    }
}

When we receive the HTTP request, we have to synchronously respond within 1 second with a 200 OK to approve the transaction or 402 Payment Required to decline the transaction.

Say you are hired tomorrow, and you're leading the three person team in this room.  How would you suggest we build the application that processes these requests? Some areas we should be sure to cover are *physical infrastructure, data stores, data model, security, and performance considerations*.  For simplicity, we should start off with the assumption that 1 Shopper has just 1 Order at 1 merchant.
回复

使用道具 举报

地里匿名用户
推荐
匿名用户-NW5UP  2020-12-1 03:44:08
唐老鸭 发表于 2020-11-27 18:45
楼主,“input需要用stdin parse”,是一行一行parse吗?比如“T3 = T4 + T5”是一行?那怎么test呢?

是的,test就和你在terminal run program一样,run program, input 一行,然后回车再input下一行。Java可以用scanner class。

评分

参与人数 2大米 +4 收起 理由
liu.haonan + 2 给你点个赞!
T012 + 2 很有用的信息!

查看全部评分

回复

使用道具 举报

🔗
bearsrunrunrun 2020-11-19 09:53:55 | 只看该作者
全局:
没米题目看不到···但感觉第二题的第二问是topological sort?
回复

使用道具 举报

🔗
f1371342385 2020-11-20 12:10:52 | 只看该作者
全局:
LZ是不是应该第二问应该是T3 = T2 而不是 T2 = T3?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-NW5UP  2020-11-20 12:14:49
两种情况都有可能出现,只是一个相等的关系
回复

使用道具 举报

🔗
fengshimeng0425 2020-11-21 04:36:03 | 只看该作者
全局:
没有达到阅读权限 楼主可不可以分享一下第一题
回复

使用道具 举报

🔗
sever515 2020-11-21 06:23:02 | 只看该作者
全局:
第二题可以用union find?
回复

使用道具 举报

🔗
唐老鸭 2020-11-28 07:45:31 | 只看该作者
全局:
楼主,“input需要用stdin parse”,是一行一行parse吗?比如“T3 = T4 + T5”是一行?那怎么test呢?
回复

使用道具 举报

🔗
databaseinterna 2020-11-29 14:13:48 | 只看该作者
全局:
本帖最后由 databaseinterna 于 2020-11-29 14:37 编辑

我分数不够,楼主方便的话可以私信下我隐藏部分吗?主要想知道 system design 题目,谢谢。 加米加米~
回复

使用道具 举报

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

本版积分规则

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