Data Scientist Senior Interview Questions

3,392 data scientist senior interview questions shared by candidates

Can you explain what the pseudo-code below is trying to do? array[N] # array of N integers, indexed 0 to N-1; # assume it’s populated with [1,4,2,-2,-9,10,2,12,2,-4,-4,-4,-4,2,6,7] peak = array[0] index = 0 output = [] # array of tuples For x in 1..N-1 if (array[x]*array[x-1] > 0) if peak < 0 and array[x] < peak peak = array[x] index = x if peak >= 0 and array[x] > peak peak = array[x] index = x else output.insert( (index, peak) ) peak = array[x] index = x end if end for return output
avatar

Senior Data Scientist

Interviewed at PriceLabs

4.5
Dec 15, 2023

Can you explain what the pseudo-code below is trying to do? array[N] # array of N integers, indexed 0 to N-1; # assume it’s populated with [1,4,2,-2,-9,10,2,12,2,-4,-4,-4,-4,2,6,7] peak = array[0] index = 0 output = [] # array of tuples For x in 1..N-1 if (array[x]*array[x-1] > 0) if peak < 0 and array[x] < peak peak = array[x] index = x if peak >= 0 and array[x] > peak peak = array[x] index = x else output.insert( (index, peak) ) peak = array[x] index = x end if end for return output

While i/v date was scheduled to match the trip from UK, no details were given until at the 11th hour. No introduction to their environment was given. How to apply Scrum in Data Science? How to revive entrepreneurship?
avatar

Senior Data Scientist

Interviewed at PlayStation

4.2
Jun 28, 2014

While i/v date was scheduled to match the trip from UK, no details were given until at the 11th hour. No introduction to their environment was given. How to apply Scrum in Data Science? How to revive entrepreneurship?

Viewing 411 - 420 interview questions

Glassdoor has 3,392 interview questions and reports from Data scientist senior interviews. Prepare for your interview. Get hired. Love your job.