SarthakKeshari / CPP-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 132 forks source link

Egg dropping Problem #382

Closed PrakharRathore123 closed 2 years ago

PrakharRathore123 commented 2 years ago

Enter your question -

Given a certain amount of floors and also given certain amount of eggs .What is the least amount of egg drops one has to perform to find out the threshold floor. Threshold floor is one from which the egg starts breaking and also egg breaks for all the floors above. Also, if egg dropped from any floor below the threshold floor, it won’t break. Test Cases: An egg that survives a fall can be used again. A broken egg must be discarded. The effect of a fall is the same for all eggs. If an egg breaks when dropped, then it would break if dropped from a higher floor. If an egg survives a fall then it would survive a shorter fall.

Enter link to the question(if question belongs to any online platform) -

-

Tags for the question(eg - Array, Basic, Stack, etc.) -

Recursion , Array , Dynamic programming

PrakharRathore123 commented 2 years ago

@SarthakKeshari Kindly assign me this issue.

SarthakKeshari commented 2 years ago

@PrakharRathore123, Kindly elaborate the question, with a test case and explaination

PrakharRathore123 commented 2 years ago

@SarthakKeshari Kindly check

SarthakKeshari commented 2 years ago

@PrakharRathore123, Kindly enter 2 test cases with proper output explaination