Science, asked by ALANWALKER2083, 3 months ago

Can you tell me the 15 errors in the code you just created? ...
How can you drop two eggs the fewest amount of times, without them breaking? ...

Answers

Answered by devip649
3

Answer:

Explanation:

The following scenario unfolded at an interview with one of the computer giants:

A candidate for a software engineering position walked into an interview and was asked to write a program that prints “Hello World” in any language. The interviewer glanced at the code and told the candidate he had five minutes to find 15 errors in the code.

The candidate couldn’t do it and was rejected for the job.

3. How can you drop two eggs the fewest amount of times, without them breaking?

Shared by Kiran Jumar Pasam:

A rather long-winded question, asked by a Silicon Valley engineering company. Here’s the full question:

Suppose that there is a building with 100 floors. You are given two identical eggs. The most interesting property of the eggs is that every egg has its own “threshold” floor. Let’s call that floor N. What this means is that the egg will not break when dropped from any floor below floor N, but the egg will definitely break from any floor above floor N, including floor N itself.

For example, if the property of the eggs is that N equals 15, those eggs will always break on any floor higher than or equal to the 15th floor, but those eggs will never break on any floor below floor 15. The same holds true for the other egg, since they are identical.

Here is the question: What strategy should be taken in order to minimize the number of egg drops used to find floor N (the threshold floor) for the egg? Also, what is the minimum number of drops for the worst case using this strategy?

Similar questions