Interview Question

Senior Data Scientist Interview



You have a bucket full of gems of 3 colors (i.e. Red, Green, Blue). Each color is > 1 gem. What is the minimum number of gems you would have to take to always ensure that you have 2 of the same color? What if I had n colors?

AnswerAdd Tags

Interview Answers

2 Answers



R on


You would need to pick 4 gems. You would need n+1 gem

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.