Data Scientist Interview Questions

33,874 data scientist interview questions shared by candidates

3 questions, two sql+ 1 python (though can be also easily solved with sql). The sql question is about finding the most popular track and for each track, the day it had most popularity. the python question is about adding certain advs. seconds on every 3,5,15 stream a user had. The interviewer appears having limited experience with sql, as both interviewers had moments first doubting my code, then admit they made mistake. As one example, when doing an inner joining of two tables I had 'From tableA a, tableB b where a.metric=b.metric, the interviewer first asked me where's my inner joining of the two tables, as in her mind it should be written as 'From TableA a inner join TableB b on a.metric=b.metric'. After I explained, she realized both ways writing are equivalent. Though I got all three questions right and well explained, I did not pass the tech interview and there was no feedback.
avatar

Data Scientist

Interviewed at Spotify

4
Feb 10, 2020

3 questions, two sql+ 1 python (though can be also easily solved with sql). The sql question is about finding the most popular track and for each track, the day it had most popularity. the python question is about adding certain advs. seconds on every 3,5,15 stream a user had. The interviewer appears having limited experience with sql, as both interviewers had moments first doubting my code, then admit they made mistake. As one example, when doing an inner joining of two tables I had 'From tableA a, tableB b where a.metric=b.metric, the interviewer first asked me where's my inner joining of the two tables, as in her mind it should be written as 'From TableA a inner join TableB b on a.metric=b.metric'. After I explained, she realized both ways writing are equivalent. Though I got all three questions right and well explained, I did not pass the tech interview and there was no feedback.

Write a program in Python to calculate tax if Salary and Tax Brackets are given as list in the form [ [10000, .3],[20000, .2], [30000, .1], [None, .1]]. You don’t know in the beginning how many tax brackets are there. You have to test for all of them.
avatar

Data Scientist Infrastructure

Interviewed at Meta

3.6
Apr 1, 2018

Write a program in Python to calculate tax if Salary and Tax Brackets are given as list in the form [ [10000, .3],[20000, .2], [30000, .1], [None, .1]]. You don’t know in the beginning how many tax brackets are there. You have to test for all of them.

Given an event-level table of interactions between pairs of users (note that there aren't duplicates in one day for one pair of users), for each possible number of "people interacted with" find the count for that group in a given day (i.e. 10 people interacted with only one person, 20 with 2, etc.).
avatar

Data Scientist

Interviewed at Meta

3.6
Nov 17, 2017

Given an event-level table of interactions between pairs of users (note that there aren't duplicates in one day for one pair of users), for each possible number of "people interacted with" find the count for that group in a given day (i.e. 10 people interacted with only one person, 20 with 2, etc.).

Viewing 131 - 140 interview questions

Glassdoor has 33,874 interview questions and reports from Data scientist interviews. Prepare for your interview. Get hired. Love your job.