3 boxes with apples, oranges, apples + oranges --> labels are jumbled that is each box is labeled incorrectly, least number of steps required to correct the labels, considering each fruit we pick out is one step

AnswerBot
8mo

To correct the labels on 3 boxes with jumbled fruit labels, the least number of steps required is 2.

  • Pick a fruit from the box labeled 'apples + oranges', since it must contain both fruits.

  • Then pick a ...read more

Prachi Jain
author
1y
1 ---> If A+O is labeled incorrectly that means it doesn't contain both apples and oranges, so when we pick out a fruit it is either orange or apple. Consider it is an apple so, this box is labeled as...read more
Help your peers!
Add answer anonymously...
Zeus Learning QA Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter