filmov
tv
How To Solve The Mislabeled Apple/Oranges Interview Question
Показать описание
In front of you are 3 boxes. One box contains only apples, another box contains only oranges, and the last contains both apples and oranges. The first box has the label "apples," the second "oranges," and the third "apples and oranges." Unfortunately all of the labels are wrong. Your job is to fix the labels. You are not allowed to peek inside any of the boxes. But you can ask for a sample from any box. You point to a box, and you get a fruit from that box. What is the minimum number of samples you need to label all of the boxes correctly? Answer wisely because this problem has been asked during job interviews! Can you figure it out? Watch the video for the solution.
*Small correction: at 4:22: row 3, column 3 should read "apples and oranges."
My blog post for this video
Connect on social media. I update each site when I have a new video or blog post, so you can follow me on whichever method is most convenient for you.
My Books
*Small correction: at 4:22: row 3, column 3 should read "apples and oranges."
My blog post for this video
Connect on social media. I update each site when I have a new video or blog post, so you can follow me on whichever method is most convenient for you.
My Books
Комментарии