If we have 9 floor n 3 eggs n we have to check from which floor the egg wont get break.how can we do that
Answer / saurabh dhande
To find the floor from which the egg won't break, you can use a modified binary search algorithm. Here's a step-by-step explanation of the process:
Divide the building into intervals: Begin by dropping an egg from the middle floor (floor 5 in this case if there are 9 floors) using the first egg. If it breaks, then you know the critical floor must be below this floor. If it doesn't break, then you know the critical floor must be above this floor.
Determine the next interval: Based on the result of the first drop, you now have two sub-intervals left to explore. If the egg didn't break in the first step, you will drop it from the middle floor of the upper sub-interval (floors 6 to 9 in this case). If it breaks, you know the critical floor is one of these upper floors. If it doesn't break, the critical floor must be one of the lower floors (floors 1 to 4).
Continue dividing the intervals: Repeat the process until you narrow it down to a single floor. To do this, you will use the second egg as a safety net in case the critical floor is at the very top. This way, you minimize the number of egg drops required.
By following this approach, you should be able to find the critical floor with the minimum number of egg drops. The maximum number of attempts required using this method is 4 in the worst-case scenario.
In this specific example with 9 floors and 3 eggs, you can find the critical floor in at most 4 attempts.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain Boudary value testing and equivalence testing ?
tell me about low severity & high priority bug?
What is diff between Load testing Stress testing?
What is interface testing
Explain the importance of agile testing?
can u explain me v-model?I told him we will do parallely both devolpment and testing . frs------------useraccepatance testing \ / srs system testing \ / HLD integration testing \ / LLD--------------------- unit testing \ / CODING he asked me how ur frs is done parallel with useracceptence testing and srs is done parallel to system testing and HLD IS done parallel to integration testing and LLD is done parallel to unit testing.Give me a clear clarification for it?
what is sevirity and who will decided that one?
11 Answers Creative Informatics, MBT, TCS,
could u pls anyone tel me .."which is the best instute that provides eficient practical knowledge and also real-time oriented knowldge to do a project in manual and automation testing..in hyd" pls send me to dis mail-id if u find any..? sinducute17@gmail.com
boundry value range for the a and b where a/b=c conditions 1. if c <1000 2. if c b/w 1000 and 2000 3. if c > 2000
Test Cases design during ??? four options are given below. Which 1 is correct... 1. Test recording 2. Test Planning 3. Test configuration 4. Test specification.
1.Unit testing ->integration testing->system testing->UAT in this where do u do the functional testing & regression testing? if these two done in each phase why should not mentioned in that ?
3.if a questions asked as,what is the quality standards you are following? what i need to tell.