Lead Software Engineer Interview Questions

3,723 lead software engineer interview questions shared by candidates

Take a second to imagine that you are in a room with 100 chairs arranged in a circle. These chairs are numbered sequentially from One to One Hundred. At some point in time, the person in chair #1 will be told to leave the room. The person in chair #2 will be skipped, and the person in chair #3 will be told to leave. Next to go is person in chair #6. In other words, 1 person will be skipped initially, and then 2, 3, 4.. and so on. This pattern of skipping will keep going around the circle until there is only one person remaining- The survivor! Note that each chair is removed when the person leaves the room. Write an HTML page using Javascript/Typescript and Angular to visualize the disappearing chairs and figure out which chair the survivor is sitting in. Please send me the answer and your working code.
avatar

Frontend Lead Developer

Interviewed at POPSUGAR

3.4
Jul 11, 2016

Take a second to imagine that you are in a room with 100 chairs arranged in a circle. These chairs are numbered sequentially from One to One Hundred. At some point in time, the person in chair #1 will be told to leave the room. The person in chair #2 will be skipped, and the person in chair #3 will be told to leave. Next to go is person in chair #6. In other words, 1 person will be skipped initially, and then 2, 3, 4.. and so on. This pattern of skipping will keep going around the circle until there is only one person remaining- The survivor! Note that each chair is removed when the person leaves the room. Write an HTML page using Javascript/Typescript and Angular to visualize the disappearing chairs and figure out which chair the survivor is sitting in. Please send me the answer and your working code.

Viewing 611 - 620 interview questions

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