回复: 6
跳转到指定楼层
上一主题 下一主题
收起左侧

Y-E-L-P MLE phone screen 挂经

🔗
匿名用户-YUALU  2022-1-14 06:24:45 |倒序浏览

2022(1-3月) MachineLearningEng 本科 全职@yelp - 网上海投 - 技术电面  | 😐 Neutral 😐 Average | Fail | 在职跳槽

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

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

x
Stratup: was late for 5 min or so, due to my connection issue.

Warmup: interviewer introduced himself for 3 - 5 min.

Question: segment a search string with a bigram dictionary
input: "I like ice coffee." dict = ["ice coffee", "New York"]
output: ["I", "like", "ice coffee"]

我的解答:c++
1, split the search
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
: "throughout the problem solving, you could have been more efficient in analyzing the issue. They would have liked to see you reach a solution faster by asking more questions at the outset to better understand the problem. "


希望对大家有所帮助。也请大家分析哪里出了问题,我以后继续努力。多谢!

评分

参与人数 1大米 +10 收起 理由
匿名用户-0U9ZE + 10

查看全部评分


上一篇:Jane Street Quantitative Trader Intern Final Round面经
下一篇:雨淋 一轮45min VO 请教
地里匿名用户
推荐
匿名用户-AHVTM  2022-1-14 07:38:12
看不到你的隐藏部分,我面了一模一样的职位,电面是一模一样的题目,当时是这个5分钟做完,然后followup 3-gram, k-gram全部implement完成,还有时间聊business questions。所以我猜他们可能真的expect能很快写完?我面试都用python,就是感觉能写的更快
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-YUALU  2022-1-14 07:46:29
匿名者 发表于 2022-1-13 15:38
看不到你的隐藏部分,我面了一模一样的职位,电面是一模一样的题目,当时是这个5分钟做完,然后followup 3- ...

多谢回复。看来我需要改变思路。我以前面试写题都是尽量按照工作要求来写,变量与方法的名字也写的很长,容易懂。之前是面国内公司居多,没啥问题,这次基本是第一次在墙外面,不懂规矩。。。

能问下为啥隐藏部分看不到么,积分还是?我并没有设置限制。。。
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-YUALU  2022-1-14 07:49:47
匿名者 发表于 2022-1-13 15:38
看不到你的隐藏部分,我面了一模一样的职位,电面是一模一样的题目,当时是这个5分钟做完,然后followup 3- ...

Stratup: was late for 5 min or so, due to my connection issue.
Warmup: interviewer introduced himself for 3 - 5 min.
Question: segment a search string with a bigram dictionary
input: "I like ice coffee." dict = ["ice coffee", "New York"]
output: ["I", "like", "ice coffee"]
我的解答:c++
1, split the search string into string vectors with space. confirmed with intervewer that the separator is only one space, no tabs, etc.
2, split each phrase in the bigram dictionary with space: unordered_map<string, unordered_set<string>>: key: the first word in the bigram, value: the list of the second word in the bigram. confirmed with interviewer that the length of the phrase is alway 2, no exceptions.
3, iterative over the preprocessed search vector with index:
for (int i = 0; i < search_vector.size(); )
when i < search_vector.size() - 1 and the i and i + 1 are both matched: push the bigram into the result vector, i += 2
else: push the ith word into the result vector, ++i
Till here, about 30 min passed.
asked about time complexity, given number of words in search string as N and number of phrases in the dictionary as M:
O(max{N, M})
follow up: N-gram match (N = any):
I gave an inaccurate answer as a tree node, but interviewer just mentioned not necessary to write the code out though I did. He was trying to confirm if I was about to use Trie, and I finally agreed.
Till here, about 40 min passed. the last 5 min was for questions.
Result: FAIURE
Feedback: "throughou‍‌‍‍‍‍‌‌‌‌‍‍‌‍‍‌‌t the problem solving, you could have been more efficient in analyzing the issue. They would have liked to see you reach a solution faster by asking more questions at the outset to better understand the problem. "
回复

使用道具 举报

🔗
mi23 2022-2-8 04:20:55 | 只看该作者
全局:
楼上有人能说说想法吗?卡住在ngram上了
回复

使用道具 举报

🔗
xxrrrr 2022-4-27 17:07:24 | 只看该作者
全局:
请问最开始有hr screening吗, 我收到第一轮hr面,感觉不是技术面。
回复

使用道具 举报

全局:
匿名者 发表于 2022-1-13 18:38
看不到你的隐藏部分,我面了一模一样的职位,电面是一模一样的题目,当时是这个5分钟做完,然后followup 3- ...

请问在leetcode上面有对应的题目吗?多谢。
回复

使用道具 举报

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

本版积分规则

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