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

FB Data Scientist Infra 店面挂经

🔗
lonelyjohner 2019-8-23 03:41:42 | 只看该作者
全局:
试着写了写coding第二道   结果能对但看着就是一坨shi   希望能有大神分享一下简洁的方法
回复

使用道具 举报

🔗
stgg 2019-8-24 02:30:48 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
attentionall 2019-8-24 12:39:32 | 只看该作者
全局:
  1. Select
  2.         count(distinct c.project_id)
  3. From commit as c
  4. Left join employee as e
  5. On c.employee_id = e.id
  6. Where. check 1point3acres for more.
  7.         time_stamp >= CURRENT_DATE() - 30
  8. Group by . From 1point 3acres bbs
  9.         e.manager_id
复制代码


sql是这样吗
回复

使用道具 举报

🔗
 楼主| wwx_27 2019-8-25 00:50:44 | 只看该作者
全局:
attentionall 发表于 2019-8-24 12:39
[mw_shl_code=sql,true]Select
        count(distinct c.project_id)
From commit as c

这题问的好像是each manager directly commits
回复

使用道具 举报

🔗
attentionall 2019-8-25 10:49:18 | 只看该作者
全局:
wwx_27 发表于 2019-8-25 00:50
这题问的好像是each manager directly commits

哦哦不是 how many projects 么
想问楼主电面 sql 是视频吗,在什么平台写呢
回复

使用道具 举报

🔗
zhang.chi1 2019-8-25 11:08:04 | 只看该作者
全局:
stgg 发表于 2019-8-24 02:30
Coding 2 就是遍历一下,主要考虑边界情况,面试的场景下保证思路清晰就好
. check 1point3acres for more.
def find_interval(aList, ma ...
. 1point 3acres
这样写是不是clean一些?希望有帮助的话可以加米~~~感谢
  1. # return interval as list of tuples
  2. def resolved(inputList, mark=1):
  3.     start, end = 0,0
  4.     result = []
  5.     n = len(inputList)
  6.     currIndex = 0
  7.     while currIndex < n:-baidu 1point3acres
  8.         # we find 1 in the list, we start our interval
  9.         if inputList[currIndex] == mark:
  10.             start, end = currIndex, currIndex
  11.             # find the end index for current interval ..
  12.             while (currIndex+ 1)<n and inputList[currIndex+1] == mark:
  13.                 end = currIndex + 1
  14.                 currIndex += 1
  15.             # append current interval on the result-baidu 1point3acres
  16.             result.append((start,end))
  17.         
  18.         currIndex += 1
  19.     return result
  20.             
  21. l1 = [1,1,1,0,0,0,1]. ----
  22. l2 = [0]
  23. l3 = [1,0,1,0,1,0,0]
  24. l4= [1,1,1,1]
  25. print(resolved(l1,1)). 1point3acres.com
  26. print(resolved(l2,1))
  27. print(resolved(l3,1))
  28. print(resolved(l4,1))-baidu 1point3acres
复制代码

评分

参与人数 1大米 +1 收起 理由
family2018 + 1 大米送上

查看全部评分

回复

使用道具 举报

🔗
jetfish1900 2019-9-6 08:19:23 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
coconut13 2019-9-9 05:34:44 | 只看该作者
全局:
感谢分享啊。。原来Infra的题和别的DS的都不太一样。。
回复

使用道具 举报

🔗
lzchu1992 2019-9-9 23:07:23 | 只看该作者
全局:
z t test的区别难道不是样本量大小吗
回复

使用道具 举报

🔗
luckscorpio 2019-11-25 11:59:35 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

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

本版积分规则

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