Data Interview Questions

132,723 data interview questions shared by candidates

Using Python, write a one-liner function to return a list containing only the unique elements of the given list. Order doesn't matter. Next, write a function to return an order-preserving list containing only the unique elements of the given list.
avatar

Data Engineer

Interviewed at Squarepoint Capital

3.9
Dec 1, 2016

Using Python, write a one-liner function to return a list containing only the unique elements of the given list. Order doesn't matter. Next, write a function to return an order-preserving list containing only the unique elements of the given list.

I had a sequence of logs from driver that were timestamps which their apps keeps sending every 15 seconds e.g. [10,25,40, 100, 115, 130, ...]. If the gap is more than 15 seconds then the driver is considered offline. Find the number of hours he was online.
avatar

Data Scientist

Interviewed at Gojek

4.1
Oct 5, 2019

I had a sequence of logs from driver that were timestamps which their apps keeps sending every 15 seconds e.g. [10,25,40, 100, 115, 130, ...]. If the gap is more than 15 seconds then the driver is considered offline. Find the number of hours he was online.

SQL ==> Sales, promotions, products DB I was able to complete only 3 questions. Python ==> solved only 3 questions. find giving letter in a string Replace None with previous element from List, there was some challenges [None] [None,1,2] ==> [None,1,2] [1,None,2] ==> [1,2,2] [1,4,None,None,3]===> [1,4,4,4,3] Forgot one question In the SQL part, please make sure you learn how to calculate %
avatar

Data Engineer

Interviewed at Meta

3.6
Oct 27, 2020

SQL ==> Sales, promotions, products DB I was able to complete only 3 questions. Python ==> solved only 3 questions. find giving letter in a string Replace None with previous element from List, there was some challenges [None] [None,1,2] ==> [None,1,2] [1,None,2] ==> [1,2,2] [1,4,None,None,3]===> [1,4,4,4,3] Forgot one question In the SQL part, please make sure you learn how to calculate %

Viewing 281 - 290 interview questions

Glassdoor has 132,723 interview questions and reports from Data interviews. Prepare for your interview. Get hired. Love your job.