New Grad Software Engineer Interview Questions

2,866 new grad software engineer interview questions shared by candidates

You are given a map with string as key and an integer as value. When we randomly get a key from the map, the probability of getting the key should be based on its value. For Ex: {'cat': 5, 'dog':2, 'human': 2, 'baby': 1} The probability of getting 'cat' is 5/10 and probability of getting 'baby' is 1/10. In other words, we are likely to get 'cat' 5 times more than 'baby'.
avatar

Software Engineer New Grad

Interviewed at Roblox

3.8
Jan 16, 2021

You are given a map with string as key and an integer as value. When we randomly get a key from the map, the probability of getting the key should be based on its value. For Ex: {'cat': 5, 'dog':2, 'human': 2, 'baby': 1} The probability of getting 'cat' is 5/10 and probability of getting 'baby' is 1/10. In other words, we are likely to get 'cat' 5 times more than 'baby'.

Viewing 571 - 580 interview questions

Glassdoor has 2,866 interview questions and reports from New grad software engineer interviews. Prepare for your interview. Get hired. Love your job.