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

Spotify DS Intern

全局:

2019(10-12月) 分析|数据科学类 本科 实习@spotify - 校园招聘会 - 技术电面  | | Fail | 应届毕业生

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

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

x
发一个Spotify的data science intern,地里好像没有人发过,圣诞节前面的。是一个超级nice的白人小哥。楼主很喜欢这家公司,然而还是fail了
1. Write a program that loops over a list of integers from 1 to 100, and for each integer prints out “fizz” if the integer is divisible by 3, “buzz” if divisible by 5, and "fizzbuzz" if divisible by both 3 and 5. If it’s not divisible by 3 or 5, just print the integer itself.

for n in range(1, 101):
str = ""
if n % 3 == 0: str.append("fizz")
if n%5 == 0: str.append( "buzz")
else:
  print(n)


What can you do to reduce the number of checks that you're doing now? In the case that it doesn't match %3 and %5 you're still checking that before checking them individually.


2. Construct a SQL query that will create a ranked list of artists based on their total number of streams on Spotify using the following two tables:

metadata: track_id, artist_name, track_name
streams:  stream_id, track_id, ms_played


Example output:
Artist      Number of streams
--------------------------------
Bieber      10 M
Adele       7 M
Drake       3 M
Timberlake  2 M
Rihanna     1 M

Follow up
您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 150 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
-baidu 1point3acres
What are some interesting top track lists we could create with this dataset alone and how would you create them? 2


. 1point3acres


. Χ
补充内容 (2019-2-10 05:49):
刚刚开始用,所以积分不够好多帖子看不了,求前辈大腿,求大米求大米!!

评分

参与人数 17大米 +69 收起 理由
diana_g823 + 2 很有用的信息!
shicx7 + 1 加饭
JasJas + 3 赞一个
HellVicky + 3 给你点个赞!
心之邑 + 1 赞一个

查看全部评分


上一篇:Intuit DS Intern一面二面
下一篇:报一个斯坦福的面经
推荐
Borennn 2019-10-21 06:32:50 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

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

使用道具 举报

🔗
sub240 2019-2-10 07:39:38 | 只看该作者
全局:
thanks a lot for sharing!
回复

使用道具 举报

🔗
ktmud 2019-2-10 12:56:50 来自APP | 只看该作者
全局:
回复

使用道具 举报

🔗
poiasdzxc 2019-2-10 13:09:14 | 只看该作者
本楼:
全局:
谢谢分享
回复

使用道具 举报

🔗
say543 2019-2-10 16:25:36 | 只看该作者
全局:
lz fuzzbuzz 你的code 因该是已经针对 What can you do to reduce the number of checks that you're doing now? 最佳化过了吧?
回复

使用道具 举报

无效楼层,该帖已经被删除
🔗
伏虓 2019-2-10 20:43:10 | 只看该作者
全局:
很喜欢Spotify,看一下!
回复

使用道具 举报

全局:
很喜欢Spotify,看一下!
回复

使用道具 举报

🔗
qhu 2019-2-11 00:46:44 | 只看该作者
全局:
感谢楼主分享
回复

使用道具 举报

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

本版积分规则

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