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

FB Technical Phone Round 1

 
全局:

2019(10-12月) 分析|数据科学类 本科 实习@meta - 内推 - 技术电面  | | Pass | 其他

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

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

x
10/10 initial technical phone interview. There was a HR screening before this.  Good luck to everyone who's recruiting!
. 1point 3 acres
SQL:
-- Q1: how many posts were reported yesterday for each report Reason?
-- Table: user_actions
-- ds(date, String) | user_id | post_id | action ('view','like','reaction','comment','report','reshare') | extra (extra reason for the action, e.g. 'love','spam','nudity')

-- Q2: introduce a new table: reviewer_removals, please ca
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
e to validate.

..

  • Given revenue decrease, how would you make recommendations? (doesn't have to be yes or no answer)

        
    • Short term vs. long term: how much does revenue drops? User experience vs. revenue. Short term revenue drop vs. long term brand perception and long term revenue gain. . check 1point3acres for more.
        
    • If user distribution changed: find cause and tackle that unimaged users

评分

参与人数 28大米 +72 收起 理由
FaNT_C + 1 给你点个赞!
小鹅 + 2 给你点个赞!
shabushabuyoy + 1 给你点个赞!
runspoon + 2 给你点个赞!
nyxjichujun + 1 给你点个赞!

查看全部评分


上一篇:FB内推 DS店面 2018 new grad
下一篇:Bloomberg 2019 summer intern - Market Data Analyst跪经

本帖被以下淘专辑推荐:

  • · DS|主题: 224, 订阅: 39
推荐
jessica.xjs 2019-3-29 15:02:29 | 只看该作者
全局:
第二题我觉得是这样的诶
Select
a.ds,
count(distinct b.post_id)/sum(case when a.action =‘view’ then 1 else 0 end) as spam_rate
from user_actions a
left join on reviewer_removals b
on a.post_id = b.post_id
group by a.ds

个人觉得不需要考虑join on date,因为 如果一个post今天被remove 不代表只有今天是spam, reviewer_removals可以看作一个metadata table, 这个table的ds只是一个action的timestamp而已

评分

参与人数 3大米 +4 收起 理由
crystalcc + 1 很有用的信息!
sheny35 + 2 给你点个赞!
saffi + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

推荐
darlingss 2019-3-15 00:09:18 | 只看该作者
全局:
Janeevans 发表于 2018-10-14 06:34
这是我第一题的解法. Χ
select
  action,
.
求解:
个人想法,
action=‘report’ 在where的时候已经经过了一次过滤了,为啥还要加group by action?
我理解group by extra即可
回复

使用道具 举报

全局:
jessica.xjs 发表于 2019-3-29 15:02
第二题我觉得是这样的诶
Select .
a.ds,
. check 1point3acres for more.
求问sum里是不是会有重复的, 比如同一个post_id多个view, 在这里就做多次count,计数一共多少view?需不需要考虑去重呢?
回复

使用道具 举报

🔗
Chubbie 2018-10-12 11:26:42 来自APP | 只看该作者
全局:
楼主方便说这是啥职位么?偏产品?
-baidu 1point3acres
来自一亩三分地官方APP
回复

使用道具 举报

🔗
 楼主| WarAol 2018-10-12 12:22:37 | 只看该作者
全局:
Chubbie 发表于 2018-10-12 11:26
楼主方便说这是啥职位么?偏产品?

来自一亩三分地官方APP
. ----
General Data Science/Analytics Intern :)
回复

使用道具 举报

🔗
Janeevans 2018-10-14 06:34:48 | 只看该作者
全局:
这是我第一题的解法. 1point3acres
select.--
  action,
  extra
  count(distinct post_id)
from. Χ
  user_actions
where
  user_id is not null and
  action = 'report' and. check 1point3acres for more.
  date(date) = date_sub(current_date, interval 1 day)

但是我没太明白第二个sql 题目的意思,追加的table 里面所有的post 都是被removed 了么?reviewer_id 是单独的一种id 还是可以match 到user_id? 一个post被removed 了是不是就等于confirm了这个post 是真正的有问题 (i.e. if this post is reported as spam and is removed, then it's an actual spam?)? 我应该会先把这些问题和面试官clarify 好了才开始做题吧。.--

补充内容 (2018-10-14 06:36):. ----
sorry, SQL 少了group by 部分:
group by
  action,-baidu 1point3acres
  extra
回复

使用道具 举报

🔗
nicolehsu 2018-10-14 07:37:36 | 只看该作者
全局:
Thanks for sharing
回复

使用道具 举报

🔗
 楼主| WarAol 2018-10-16 12:16:00 | 只看该作者
全局:
Janeevans 发表于 2018-10-14 06:34
这是我第一题的解法
select
  action,

Everything in reviewer_removals is removed.  Reviewers are FB employees, so reviewer_id doesn't matter.
回复

使用道具 举报

🔗
名字好难想 2018-10-18 12:57:21 | 只看该作者
全局:
谢谢楼主分享! 想问下SQL题目两个table各个attribute是什么意思?

-- Table: user_actions
-- ds(date, String) | user_id | post_id | action ('view','like','reaction','comment','report','reshare') | extra (extra reason for the action, e.g. 'love','spam','nudity')
post_id 是user_id News Feed 里面的post么? 换句话说不是这个user post的,是别人post的。action = view是怎么算的呢,需不需要用户点开才算view?
每个action都会有extra reason么,可不可以用户report某个post,但是不给reason?

-- Q2: introduce a new table: reviewer_removals, please calculate what percent of daily content that users view on FB is actually spam?
-- no need to consider if the removal happen at the same post date or not.
-- ds(date, String) | reviewer_id |post_id
不明白这个table和上个table的关系,比如user1 report post1 due to spam,然后post1被FB employee review,post1就会在第二个table里面么?还是post1被确认是spam以后才会在第二个table里?

多谢啦!
回复

使用道具 举报

🔗
名字好难想 2018-10-18 13:48:45 | 只看该作者
全局:
还想问一下楼主 AB test sample size n 是什么formula呀? 我一般都用网上的calculator,只要输入 alpha, beta, 以及change就行了。谢谢啦!
回复

使用道具 举报

🔗
ooqq77 2018-10-18 15:21:52 来自APP | 只看该作者
全局:
product sense 题目这么多么…

来自一亩三分地官方APP
回复

使用道具 举报

🔗
 楼主| WarAol 2018-10-19 03:43:27 | 只看该作者
全局:
ooqq77 发表于 2018-10-18 15:21
product sense 题目这么多么…. 1point 3acres
.google  и
来自一亩三分地官方APP

Yeah Haha. Cuz the SQL part lasted only 5-10 minutes. So the rest of the 40 minutes was all on product and basic stats questions.
回复

使用道具 举报

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

本版积分规则

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