注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
本帖最后由 NicoleXiaoday 于 2023-7-7 10:11 编辑
大致时间线:
Day 1 - Recruiter Phone chat 30min
Day 9 - Technical interview 60min (coding)
Day 19 - Virtual onsite 60min coding + 60min coding + 60min system design + 60min previous experience + 30min hiring manager + 15min recruiter chat
Technical interview:
- Part 1: Given an arbitrary string, give me a mapping between character and the number of times that character occurs.
"aabbbbbcDDD" => a -> 2, b -> 5, c -> 1, D -> 3
- Part 2: convert the map in the first step into a binary tree.
We take the two nodes with the lowest count as the starting points of our tree. (c, 1)
The count of the parent node should be the sum of its children’s counts. The character of the parent node doesn’t matter ("#" is used here).
Our tree now looks like this:
(#, 3)
/ \
(a, 2) (c,1)
We take the next node with the lowest count and add it as a sibling of this tree. Continue in this way for all characters and we get:
(#, 11)
/ \
(b,5) (#, 6)
/ \
(D, 3) (#, 3)
/ \
(a, 2) (c,1)
Return a pointer to the root of that tree.
Virtual onsite
Q1: Overview: In MotoGP motorcycle racing, there are 10 races in a season.
[ ["lorenzo", "hayden", "dovizioso", "rossi", "marquez"],
["marquez", "hayden", "rossi", "dovizioso", "lorenzo"],
...]
Points are awarded to each您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 mpionship, and if so, who is the winner.
Expected results (formatting may vary):
race 1
no winner yet
...
race 8
no winner yet # tie
race 9
we have a winner after 9 races! marquez
race 10
Q2: 和地里这个一样:https://www.1point3acres.com/bbs/thread-878359-1-1.html
System design: Hotel booking
Previous experience: 使劲吹就对了 |