Software Development Engineer New Grad Interview Questions

6,137 software development engineer new grad 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 1081 - 1090 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 6,137 interview questions and reports from Software development engineer new grad interviews. Prepare for your interview. Get hired. Love your job.