cad engineer interview questions shared by candidates
What is the highest floor you can drop an egg from without it cracking?
1000 if you put a parachute on it !
Any floor.... Because an egg can't crack floor.
If you have one egg start dropping the egg from the first floor. On whatever floor it breaks, is your answer. That is linear seach. If you have multiple eggs first drop the egg from middle of the building and check to see if it breaks, if it doesn't go Up otherwise go down and repeat the process. It's a binary seach.
See Interview Questions for Similar Jobs
- Dental Assistant
- Security Guard
- Social Worker
- Account Executive
- Sales Associate
- Medical Assistant
- Truck Driver