Data Scientist Interview Questions in San Jose, CA | Glassdoor.co.in

Find jobs for Data Scientist

Data Scientist Interview Questions in San Jose, CA, US

194

Data scientist interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Find the second largest element in a Binary Search Tree

16 Answers

find the right most element. If this is a right node with no children, return its parent. if this is not, return the largest element of its left child.

One addition is the situation where the tree has no right branch (root is largest). In this special case, it does not have a parent. So it's better to keep track of parent and current pointers, if different, the original method by the candidate works well, if the same (which means the root situation), find the largest of its left branch.

if (root == null || (!root.hasRightChild() ) { return null;} else return findSecondGreatest(root, root.getValue()); value findSecondGreatest(Node curr, value oldValue) { if(curr.hasRightChild()) { return (findSecondGreatest( curr.getRightChild(), curr.value)); } else return oldValue; }

generating a sorted vector from two sorted vectors.

3 Answers

How do you know if one algorithm is better than other?

2 Answers

Business sense. A question on how to assess impact of a hypothetical features and possible problems.

1 Answer

There are 25 horses. You can race any 5 of them at once, and all you get is the order they finished. How many races would you need to find the 3 fastest horses?

2 Answers

Given an array of integers, find the maximum cumulative sum of a sub-set of the array

1 Answer

Something close to the following, but a little more complicated: How many people must be gathered together in a room, before you can be certain that there is a greater than 50/50 chance that at least two of them have the same birthday?

2 Answers

Talk about a product that you wanna build at linkedin

1 Answer

How do you take millions of users with 100's of transactions each, amongst 10k's of products and group the users together in a meaningful segments?

3 Answers

How would you sort a billion integers? Merge sort algorithm Palindrome test using recursion. Statistics: A/B testing process

1 Answer
110 of 194 Interview Questions

See Interview Questions for Similar Jobs