Junior Full Stack Developer Interview Questions

436 junior full stack developer interview questions shared by candidates

Problem-Solving Question: You are given two magical eggs and need to determine at what floor they'll break at when dropped from one of the floors of a 100-storey building. When the egg lands it will either break and you can no longer use it, or it will not break and you can continue to use it. Start with the most inefficient, then describe the most efficient strategies to determine the worst-case number of drops required to determine what floor the eggs will break at. - Most inefficient case: Start from the bottom and work your work to the top. Answer: 100 drops. - Better: Binary search - drop one egg from floor 50, then work your way up or down (depending on the result). Answer: 50 drops - 1 at floor 50 and 49 to test with second egg. - Best: Drop first egg every 10 floors. In the worst case, it will break on floor 100, so you need to test second egg between floor 91 and 99. Answer: 19 drops. - Optimal: 14 drops, though I'm not sure how to get this answer.
avatar

Junior Full Stack Developer

Interviewed at LessThan3

3.7
Aug 30, 2023

Problem-Solving Question: You are given two magical eggs and need to determine at what floor they'll break at when dropped from one of the floors of a 100-storey building. When the egg lands it will either break and you can no longer use it, or it will not break and you can continue to use it. Start with the most inefficient, then describe the most efficient strategies to determine the worst-case number of drops required to determine what floor the eggs will break at. - Most inefficient case: Start from the bottom and work your work to the top. Answer: 100 drops. - Better: Binary search - drop one egg from floor 50, then work your way up or down (depending on the result). Answer: 50 drops - 1 at floor 50 and 49 to test with second egg. - Best: Drop first egg every 10 floors. In the worst case, it will break on floor 100, so you need to test second egg between floor 91 and 99. Answer: 19 drops. - Optimal: 14 drops, though I'm not sure how to get this answer.

Viewing 141 - 150 interview questions

Glassdoor has 436 interview questions and reports from Junior full stack developer interviews. Prepare for your interview. Get hired. Love your job.