Staff Data Scientist Interview Questions

112 staff data scientist interview questions shared by candidates

Interview 1 - Rotate array in such a way that sum of index*value is max - In a connected graph, randomly clicked any button with prob p, then nearby switches state changes. What is the expected no of switches open. Interview 2 - Two fair dice with 4 faces, you win if blue > black , end if blue = black and return is max (blue-black, 0). What is the expected win amount, build some recursive solution with E = prob3*(amount + E) + prob2*(amount + E) + … . solve it via coding simulation as well. (n no of loops each can have infinite no of trials) - 2sum based, with d as the difference between the two, but avoid repetitions and count (a,b) , (b,a) as one. Interview 3 - Hotel cancellation SD, with immediate profit improvement , - [1,0,0,0,1,1,0] → no of continuous subsets 4, if by prob p. with which we can get 1, what is the expected no of subsets. Sum from 1 to n P(x)*x or use recursive formula E(n,p) = prob getting same in boundary * E(n-1,p) + prob getting diff in boundary * (E(n-1,p) + 1)
avatar

Staff Data Scientist

Interviewed at Agoda

3.9
Nov 5, 2025

Interview 1 - Rotate array in such a way that sum of index*value is max - In a connected graph, randomly clicked any button with prob p, then nearby switches state changes. What is the expected no of switches open. Interview 2 - Two fair dice with 4 faces, you win if blue > black , end if blue = black and return is max (blue-black, 0). What is the expected win amount, build some recursive solution with E = prob3*(amount + E) + prob2*(amount + E) + … . solve it via coding simulation as well. (n no of loops each can have infinite no of trials) - 2sum based, with d as the difference between the two, but avoid repetitions and count (a,b) , (b,a) as one. Interview 3 - Hotel cancellation SD, with immediate profit improvement , - [1,0,0,0,1,1,0] → no of continuous subsets 4, if by prob p. with which we can get 1, what is the expected no of subsets. Sum from 1 to n P(x)*x or use recursive formula E(n,p) = prob getting same in boundary * E(n-1,p) + prob getting diff in boundary * (E(n-1,p) + 1)

There were 4 stages: 1. Behavioural and Life story, 2. Pair Programming (combined SQL and Python) - SQL was more of simple queries with some use of advanced window functions. Python was where there were 3 methods in a class and you had to fix a bug and develop more features. There were some unit tests that you had to update along the way. This is where I stopped even though I did well on the pair programming. 3rd and 4th stage would have been technical deep dive and then leadership review. What I dint like was being ghosted even though the interviewer had all positive comments at the end of the interview and was talking about the next steps.
avatar

Staff Data Scientist

Interviewed at Shopify

3.3
Feb 12, 2024

There were 4 stages: 1. Behavioural and Life story, 2. Pair Programming (combined SQL and Python) - SQL was more of simple queries with some use of advanced window functions. Python was where there were 3 methods in a class and you had to fix a bug and develop more features. There were some unit tests that you had to update along the way. This is where I stopped even though I did well on the pair programming. 3rd and 4th stage would have been technical deep dive and then leadership review. What I dint like was being ghosted even though the interviewer had all positive comments at the end of the interview and was talking about the next steps.

Viewing 21 - 30 interview questions

Glassdoor has 112 interview questions and reports from Staff data scientist interviews. Prepare for your interview. Get hired. Love your job.