Graduate Software Engineer Interview Questions

3,305 graduate software engineer interview questions shared by candidates

The Lottery question - given a number N, write a class that allows a user to call getK and receive K different balls (with different numbers), chosen randomly from the relevant balls that are still in the system (not previously returned to customer). All numbers are unique, and should be from 1 to N.
avatar

Graduate Software Engineer

Interviewed at Amazon

3.5
Jul 4, 2022

The Lottery question - given a number N, write a class that allows a user to call getK and receive K different balls (with different numbers), chosen randomly from the relevant balls that are still in the system (not previously returned to customer). All numbers are unique, and should be from 1 to N.

Viewing 271 - 280 interview questions

Glassdoor has 3,305 interview questions and reports from Graduate software engineer interviews. Prepare for your interview. Get hired. Love your job.