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

Salesforce Einstein Phone + Onsite

全局:

2017(7-9月) 码农类General 硕士 全职@salesforce - 猎头 - 技术电面 Onsite  | | Other | 在职跳槽

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

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

x
Einstein team from linkedin recruiter。这个组在卖力算是很新的,听HM说非常有影响力,里面也有不少牛人 e.g. Spark summit speaker

phone: define two functions to first analyze and then predict based on text input data
example: "i like apple i like beer i like beer", predict "like" as 33% apple 66% beer
其实就是做一下text parsing,做成一个key -> list of following words 的形式来解决
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
h level architercutre design

还有就是世界真小,午饭的时候lead问我认不认识XXX,我说是我现在team的,他说他前两天刚来salesforce做一个 session talk,我连忙说don't tell him i am interviewing with salesforce please...





上一篇:PG OA + 2轮电面 挂经 付面经答案包
下一篇:西雅图的FB 面筋
🔗
edyyy 2017-7-1 13:24:26 | 只看该作者
全局:
我连忙说don't tell him i am interviewing with salesforce please....    哈哈楼主
回复

使用道具 举报

🔗
david.fang 2017-7-1 13:25:11 | 只看该作者
全局:
楼主第一题求代码~~ follow up怎么解决的?谢谢
回复

使用道具 举报

🔗
say543 2017-7-1 13:45:23 | 只看该作者
全局:
楼主在哪工作啊? 是面senior 的position 吗 跟我的面经完全不同...
回复

使用道具 举报

🔗
2011051305 2017-7-1 14:06:56 | 只看该作者
全局:
+1 想请教您这个怎么优化空间啊? key-value已经不能再精简了啊。。。? 谢谢!
回复

使用道具 举报

🔗
vegito2002 2017-7-1 23:01:38 | 只看该作者
全局:
2011051305 发表于 2017-7-1 14:06
+1 想请教您这个怎么优化空间啊? key-value已经不能再精简了啊。。。? 谢谢!

key 后面的 list 做成 trie?
回复

使用道具 举报

🔗
 楼主| cancerlk 2017-7-2 00:39:58 | 只看该作者
全局:
say543 发表于 2017-7-1 13:45
楼主在哪工作啊? 是面senior 的position 吗 跟我的面经完全不同...

对 senior data engineer 感觉问的问题完全看人
回复

使用道具 举报

🔗
 楼主| cancerlk 2017-7-2 00:48:36 | 只看该作者
全局:
我刚开始的想法是 key -> following words list, e.g. like -> [ apple beer beer ] Space O(N) predict time O(1)
但是面试官说这样子的话会有冗余数据 worst case N^2 space e.g. "a b a c a d a e a f"
但其实我不理解为什么这个情况就是N^2了,这也是N space吧?也可能我没有完全理解他的意思

后来优化的话,可以用 key -> word -> count e.g. like -> {apple = 1, beer  = 2} 然后用类似counting sort + binary search的思路,每次predict a random number within the range of counting sort, then find the index in the counting array and return the random word这样子 analyze 方法需要 space O(N),predict方法 O(logN)

之后还说可以做到 space O(N) time O(log (logN)) 但是没有继续讨论了
回复

使用道具 举报

🔗
 楼主| cancerlk 2017-7-2 00:48:56 | 只看该作者
全局:
2011051305 发表于 2017-7-1 14:06
+1 想请教您这个怎么优化空间啊? key-value已经不能再精简了啊。。。? 谢谢!

我刚开始的想法是 key -> following words list, e.g. like -> [ apple beer beer ] Space O(N) predict time O(1)
但是面试官说这样子的话会有冗余数据 worst case N^2 space e.g. "a b a c a d a e a f"
但其实我不理解为什么这个情况就是N^2了,这也是N space吧?也可能我没有完全理解他的意思

后来优化的话,可以用 key -> word -> count e.g. like -> {apple = 1, beer  = 2} 然后用类似counting sort + binary search的思路,每次predict a random number within the range of counting sort, then find the index in the counting array and return the random word这样子 analyze 方法需要 space O(N),predict方法 O(logN)

之后还说可以做到 space O(N) time O(log (logN)) 但是没有继续讨论了


补充内容 (2017-8-17 12:50):
其实这道题目就是蓄水池抽样问题,跟LC的这道题很像:
https://leetcode.com/problems/random-pick-index/description/
回复

使用道具 举报

🔗
linlin1990 2017-10-30 07:04:10 | 只看该作者
本楼:
全局:
谢谢分享
回复

使用道具 举报

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

本版积分规则

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