Software Engineer Intern Interview Questions

12,189 software engineer intern interview questions shared by candidates

There are 100 lockers, all closed. On the first pass you alter the state of all lockers (ie closed -> open; open -> closed). On the second you alter the state of every second locker, and so on until you make 100 passes. Which lockers remain open after?
avatar

Software Engineering Intern

Interviewed at TellApart

5
Nov 7, 2013

There are 100 lockers, all closed. On the first pass you alter the state of all lockers (ie closed -> open; open -> closed). On the second you alter the state of every second locker, and so on until you make 100 passes. Which lockers remain open after?

Viewing 401 - 410 interview questions

Glassdoor has 12,189 interview questions and reports from Software engineer intern interviews. Prepare for your interview. Get hired. Love your job.