Software Engineer Graduate Interview Questions

3,310 software engineer graduate 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,310 interview questions and reports from Software engineer graduate interviews. Prepare for your interview. Get hired. Love your job.