Data Science Internship Interview Questions

10,857 data science internship interview questions shared by candidates

Implement a Linked List class (for ints only) that supports an append function, which simply appends to the end of the list. After that, they asked me to implement an appendAt function that takes two ints as arguments, and appends the second argument to the node containing the first argument in the list. e.g for a list 1 -> 2 -> 3 -> 4 -> 5 , appendAt(3,6) would result in a list: 1 -> 2 -> 3 -> 6 -> 4 -> 5 e.g for a list 1 -> 2 -> 2 -> 3 -> 4 -> 5, appendAt(2,8) would result in: 1 - > 2 -> 8 -> 2 -> 3 -> 4 -> 5 (i.e if the first argument appears more than once in the list, then append the second argument to the first instance of the node containing the first argument) I gave an iterative solution to the problem. The interviewer then asked me to write it recursively. This one is really easy, I faltered on it for some reason.
avatar

Computer Science Intern

Interviewed at Amazon

3.5
Jan 18, 2012

Implement a Linked List class (for ints only) that supports an append function, which simply appends to the end of the list. After that, they asked me to implement an appendAt function that takes two ints as arguments, and appends the second argument to the node containing the first argument in the list. e.g for a list 1 -> 2 -> 3 -> 4 -> 5 , appendAt(3,6) would result in a list: 1 -> 2 -> 3 -> 6 -> 4 -> 5 e.g for a list 1 -> 2 -> 2 -> 3 -> 4 -> 5, appendAt(2,8) would result in: 1 - > 2 -> 8 -> 2 -> 3 -> 4 -> 5 (i.e if the first argument appears more than once in the list, then append the second argument to the first instance of the node containing the first argument) I gave an iterative solution to the problem. The interviewer then asked me to write it recursively. This one is really easy, I faltered on it for some reason.

Typical BQ - Why life science, why consulting, why SKP, tell me a time... For the case it was 1. what is the current treatment landscape 2. what are the pros and cons of current treatments 3. What price should our client charge 4. How much revenue would our client make in year 1 post launch?
avatar

Life science summer intern

Interviewed at Simon-Kucher

4
Mar 6, 2025

Typical BQ - Why life science, why consulting, why SKP, tell me a time... For the case it was 1. what is the current treatment landscape 2. what are the pros and cons of current treatments 3. What price should our client charge 4. How much revenue would our client make in year 1 post launch?

Viewing 281 - 290 interview questions

Glassdoor has 10,857 interview questions and reports from Data science internship interviews. Prepare for your interview. Get hired. Love your job.