回复: 12
收起左侧

Houzz QA 面筋

本楼:   👍  0
0%
0%
0   👎
全局:   61
97%
3%
2

2019(1-3月) 分析|数据科学类 硕士 全职@ - 内推 - 技术电面  | | Fail | 在职跳槽

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

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

x
找朋友内推了3个职位,然后HR很快就联系我面Quantitative Analyst.

技术店面跟FB很像,SQL + 产品sense。
三哥先是迟到了十分钟,然后全程冷漠,SQL题我是先把思路讲了一下再开始写的,中间有个小bug被提出来修复了一下。产品题真是简直了,完全木有互动,他一直问what else,也不针对我回答的点进行质疑或者深入讨论。。。果然第二天就直接拒掉了,可能我产品确实也答得不好吧。。
. 1point3acres.1point3acres
面筋见隐藏:
您好!
本帖隐藏的内容需要积分高于 180 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 180 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式



求大米啊啊啊啊啊啊~

评分

参与人数 3大米 +21 收起 理由
清道神君 + 15
kikichenx + 3 给你点个赞!
huixingzhijia + 3 很有用的信息!

查看全部评分


上一篇:Insight Data Engineering code challenge
下一篇:脸叔 DS Analytics 电面挂经
冷月无声 2019-5-7 00:30:37 | 显示全部楼层
本楼:   👍  1
100%
0%
0   👎
全局:   280
98%
2%
5
这道题真的好难啊。。。。. .и

SELECT TEAM, MAX(consecutive_winning) as Max_win. Χ
FROM (
  SELECT Team, match_diff, count(*) as consecutive_winning
  FROM (
    SELECT Team, WinnerFlag,. ----
             ROW_NUMBER() OVER (PARTITION BY Team ORDER BY match_id) AS nth_match,
            SUM(CASE WHEN WinnerFlag = ‘Y’ THEN 1 ELSE 0 END) OVER (PARTITION BY Team ORDER BY         match_id) AS nth_winning,
             (nth_match – nth_winning) AS match_diff
    FROM world_cup.1point3acres
      ) temp1. check 1point3acres for more.
  WHERE WinnerFlag = ‘Y’. 1point3acres
  GROUP BY Team, match_diff
) temp2
GROUP BY Team
回复

使用道具 举报

zhuzaizai 2019-2-21 16:11:34 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   87
98%
2%
2
深夜大概写了一下,没细细验证。


select team, max(gap) - 1
from
    (. .и
    select team, n_rank, lead(n_rank) over (partition by team order by n_rank) - n_rank gap

    from
        (
        select distinct team, 0 n_rank
        from world_cup
        union all

        select team, max(n_rank)+1
        from
            (
            select team, match_id,
                   rank() over (partition by team order by match_id) n_rank
            from world_cup
        )a.google  и
        where WinnerFlag = 'N'
        group by 1

        union all ..

        select team, n_rank. Waral dи,
        from. 1point 3 acres
        (
            select team, match_id,
                   rank() over (partition by team order by match_id) n_rank
            from world_cup
        )a
        where WinnerFlag = 'N'
    )a
    order by 1, 2
)t
where gap is not NULL
group by 1
扫码关注一亩三分地求职移民公众号
更多干货内容等你发现
回复

使用道具 举报

shawe112 2019-6-12 03:42:29 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   61
100%
0%
0
select *
from.1point3acres
(select team,max(co) as cnt
from
(
select team,gap,count(*) co
from
(
select team,rank-ROW_NUMBER() OVER (Partition By team Order By rank) as gap
from
(
select distinct a.match_id, a.team, a.winner_flat,a.rank
from (
select *, ROW_NUMBER() over (partition by team order by match_id) as rank. ----
from world_cup1
) a,
(
select *, ROW_NUMBER() over (partition by team order by match_id) as rank-baidu 1point3acres
from world_cup1. 1point3acres
) b. From 1point 3acres bbs
where (a.rank + 1 =b.rank or a.rank - 1 = b.rank) .1point3acres
and a.winner_flat = 'Y' and b.winner_flat = 'Y'
and a.team = b.team .
) p1
)p2
group by team,gap. 1point 3 acres
) a
group by team
) t1
union
(
select team, count(winner_flat) as cnt
from world_cup1
where winner_flat = 'Y'
group by team
having count(winner_flat) = 1
). Waral dи,
union
(
select team, count(distinct winner_flat) as cnt
from. 1point 3acres
(
select c.team, c.winner_flat
from (
select *, ROW_NUMBER() over (partition by team order by match_id) as rank
. 1point 3acres from world_cup1
) c,
(
select *, ROW_NUMBER() over (partition by team order by match_id) as rank
from world_cup1. Χ
) d
where ((c.rank + 1 = d.rank) or (c.rank - 1 = d.rank))
and ((c.winner_flat = 'Y' and d.winner_flat = 'N') or (d.winner_flat = 'Y' and c.winner_flat = 'N'))
and c.team = d.team. 1point 3 acres
and c.team not in (select team from (select team,count(winner_flat) as cnt
from
(-baidu 1point3acres
select distinct a.match_id, a.team, a.winner_flat
from (
select *, ROW_NUMBER() over (partition by team order by match_id) as rank
from world_cup1
) a,
(.1point3acres
select *, ROW_NUMBER() over (partition by team order by match_id) as rank
from world_cup1
) b
where (a.rank + 1 =b.rank or a.rank - 1 = b.rank)
and a.winner_flat = 'Y' and b.winner_flat = 'Y'
and a.team = b.team . 1point 3 acres
) a
group by team
) tem
)
) t2
where winner_flat = 'Y'. check 1point3acres for more.
group by team)
回复

使用道具 举报

本楼:   👍  0
0%
0%
0   👎
全局:   838
91%
9%
86
这个SQL很难看起来。
回复

使用道具 举报

kkoufe 2019-2-21 15:51:25 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   489
96%
4%
18
楼主摸摸头,我也面过这家的QA,同样三哥面试官,题目都答上来了,第二天无情据,感觉他们家的面试就是个过场,一点诚意都没有。move on吧~
回复

使用道具 举报

sybil0618 2019-3-15 01:38:53 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   7
100%
0%
0
请问楼主店面面了多久哇?
回复

使用道具 举报

 楼主| HualingLax 2019-3-15 02:53:06 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   61
97%
3%
2
sybil0618 发表于 2019-3-15 01:38
请问楼主店面面了多久哇?
. .и
大概40分钟
回复

使用道具 举报

sybil0618 2019-3-15 03:42:37 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   7
100%
0%
0

十分感谢!
回复

使用道具 举报

sybil0618 2019-3-15 06:28:00 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   7
100%
0%
0
kkoufe 发表于 2019-2-21 15:51. check 1point3acres for more.
楼主摸摸头,我也面过这家的QA,同样三哥面试官,题目都答上来了,第二天无情据,感觉他们家的面试就是个过 ...

可否请教下店面大致的流程吗,会go over resume and project/intern experience 还是直接做题呀另外会考stats 那些知识吗,recruiter啥也没说。。十分感谢!
回复

使用道具 举报

queenie_linnan 2019-4-7 13:53:24 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   22
85%
15%
4
感谢楼主分享!
回复

使用道具 举报

jaymzhu 2019-4-26 09:46:05 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   50
100%
0%
0
zhuzaizai 发表于 2019-2-21 16:11
深夜大概写了一下,没细细验证。

这个ok吗
. .и
SELECT temp2.team, MAX(temp2.bk2bk_winning)
FROM
(
    SELECT temp1.team, temp1.rnkdiff, COUNT(*) AS bk2bk_winning  
    FROM
    (
        SELECT team, match_id,
                    ROW_NUMBER() OVER
                                             (PARTITION BY team ORDER BY match_id ASC) AS rnk,
                    match_id - ROW_NUMBER() OVER
                                             (PARTITION BY team ORDER BY match_id ASC) AS rnkdiff
        FROM world_cup
        WHERE winner_flat = 'Y'
        ) temp
    GROUP BY 1, 2
    ORDER BY 1, 2 .1point3acres
    ) temp2
GROUP BY team
回复

使用道具 举报

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

本版积分规则

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