Graduate Developer Interview Questions

5,185 graduate developer 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 401 - 410 interview questions

Glassdoor has 5,185 interview questions and reports from Graduate developer interviews. Prepare for your interview. Get hired. Love your job.