Software Engineer 2 Interview Questions

665,793 software engineer 2 interview questions shared by candidates

There are 100 people standing near the beginning of a row of 100 closed doors. The first person goes down the row and opens every door. The second person closes every 2nd door. The third person changes the state of every 3rd door, and so on. Write a routine to find the state of door X after person Y passes by.
avatar

Software Engineer

Interviewed at Capital One

3
Nov 12, 2015

There are 100 people standing near the beginning of a row of 100 closed doors. The first person goes down the row and opens every door. The second person closes every 2nd door. The third person changes the state of every 3rd door, and so on. Write a routine to find the state of door X after person Y passes by.

Viewing 1731 - 1740 interview questions

Glassdoor has 665,793 interview questions and reports from Software engineer 2 interviews. Prepare for your interview. Get hired. Love your job.