Puzzles for Software Engineers | Apple #1

preview_player
Показать описание
#shorts
Are you worried about placements/internships? Want to prepare for companies like Microsoft, Amazon & Google? Join ALPHA.
In case the website crashes due to your heavy response then use this second link.

---------------------
--------------------------

Рекомендации по теме
Комментарии
Автор

I will pick a single fruit from the box which is labelled as "Apples + Oranges". Now we know that every box is labelled wrong so in "Apples + Oranges" labelled box we can't have Apples + Oranges. Suppose we get an apple from "Apples + Oranges" labelled box. So we got to know that "Apples + Oranges" labelled box contains only Apples since it can't contain Apples + Oranges. Then we have two boxes more to guess - one which has only oranges and one which has both apples and oranges. Now the box labelled "Oranges" cannot contain only oranges since all labels are wrong. So it must either contain Apples + Oranges or only Apples. But we already know that the box labelled "Apples + oranges" contains only apples. Since we can't have two boxes that contain only apples, the box labelled "Oranges" must contain Apples + Oranges. Therefore the remaining box i.e. the one labelled as "apples" must contain only oranges.

LABEL ACTUAL
Apples + Oranges Apples
Oranges Apples + Oranges
Apples Oranges


Similarly if on opening the "Apples + Oranges" labelled box if we get oranges, then the solution would be
LABEL ACTUAL
Apples + Oranges Oranges
Oranges Apples
Apples Apples + Oranges

So just by picking a single fruit from "Apples + Oranges" labelled box, we can solve the puzzle.

smitpatel
Автор

Let's discuss the hints first (and things to remember):
1. All boxes are wrongly labeled.
2. You can see the labels.
3. You can only pick one fruit (from any 1 box).
4. HINT: Always pick the fruit from the box which has the label apples and oranges.

Now lets discuss the SOLUTION:

You pick 1 fruit from the box labeled Apples+Oranges.

Scenario 1: The fruit you pick is an apple. Assuming the labeling is wrong, this box labeled Apples+oranges has all apples only. Now the box labeled oranges will have Apples+oranges. And the box labeled apples will have all oranges.

Scenario 2: The fruit you pick is an orange. The label is Apples+oranges, but assuming labeling is wrong, this box will have all oranges. Now, the box labeled oranges will have all apples. And the box labeled apples will have Apples+oranges.

Hope this makes it clear!

saquibalikhan
Автор

Everyone: thinks of answer
Me:I still didn't understood the question
Edit:I never got so many likes....thank you soo much guys....❤️❤️

joydasgupta
Автор

Let me explain ->

Now remember and focus on one thing "labels are not correct on each box" which means item have to be different then the label...

Let's take an example if we chose "apple" Label then the item could be - *Orange* or *_Apple + Orange_* and same with the label "orange" which also does not give a certain answer

But if we chose Label "Apple + Orange" then we are certain that it will contain item either *_Apple_* or *_Orange_* and not *_Apple + Orange_* as the labels are different then item

GokuAgain
Автор

मैं तो परंपरा के अनुसार कॉमेंट पढ़ने आया हूँ 😁

BRAND_BOY_
Автор

For those who didn't get it—
Aapko pata hai ki labelling galat hai to agar apple+orange wale me suppose apple milta hai iska matlab jisme orange likha hai usme to apple+ orange hi hoga ( sirf orange nhi hoga kyuki labelling galat hai), aur apple jisme likha hai wo baki raha to usme orange hi hoga

wam
Автор

Yes! I was able to solve this question!

initially I considered picking a fruit from the box labelled oranges. Let's say we get an apple. So you still can't tell which box it is as it has a possibility of being only apple/ apples+oranges. If you get an orange from the same box, we can surely tell that the box is an apples + oranges box. Hence the box labelled apples is the one with oranges (as it can't contain only apples) and the box labelled A+O will contain apples. But the thing is, this is a risk as there is a 50/50 chance of getting either, from the oranges or apples box.

Hence we pick a fruit from the A+O box. Let's say it is an orange. Hence the box labelled A+O is the box with only oranges. Now, the box labelled only apples will contain A+O, as it can't contain apples. And finally the box labelled oranges will contain only apples.

Similarly we can find out the answer if we get an apple from the box labelled A+O

Picking a fruit from the box labelled A+O gives us a guaranteed answer.

rishimehta
Автор

To the people who r trying to find the answer it's quite simple...as she mentioned that all the lables are wrong..and we have to pick one fruit from any box..so if we will pick from apple + orange box..so what ever fuit it will have will get the lable..suppose we get apple from apple+orange box that means that box is of apple..and now we have two box labbled as apple and orange..and as orange box can't have orange and also can't have apple(because we already find apple) that means it has apple+orange..and now the last box marked as apple will have oranges inside it...Hope u guys got it..

surbhi
Автор

One way is to shake the boxes. Now Oranges have sponge-like peels and apples have stronger peels. So when oranges strike against each other, they create a faint sound, while apples can create a thud sound. Same goes for apples + oranges boxes, but this time it's more difficult. You can know everything by touching.

abeginnerspov
Автор

The key to notice here to guess remaining two boxes after picking one fruit is hidden in the sentence 'all the labels are wrong'.
So when I will pick one fruit from one box I need to replace it's label with label of that box which matches with the fruit I picked.
2nd step is to interchange labels of two untouched boxes.
So u got all boxes with correct labels.

loveleetjoshi
Автор

I will take fruit from the APPLE +ORANGE
There is 2case..
Case 1: if I find orange, APPLE box must be apple+orange, that's why ORANGE box is apple (bcz we can't find 3 orange in 3 diff box)
Case 2:if I find apple, APPLE box must be apple+orange, that's why ORANGE box is filled with apple. (Bcz we can't find 3apple in 3diff box)
Nice puzzle Sradha Didi ❤❤

joydeepsaha
Автор

Given: Every box has wrong label.

Case 1:
Open A+O box, if oranges there. So, the O label box will have an apple and an A label box will have a mix.

Case 2:
Opens A+O box, if apple there. That means the A label box has oranges and an O label box that has a mix.

shubhambagwari
Автор

Me trying to think if i can feel the shape😂😂😂🤣🤣

ANVISINGH_
Автор

Apple’s Question is like Apple’s Policy: First create a Problem then Sell its solution

AbhishekSharma-scqz
Автор

This one just required you to listen the question carefully - "all the boxes are labelled incorrect" is the actual hint, just make all the possible cases where the boxes can all be labelled incorrect, and you will see that the taking out a fruit from the mislabeled Apples + oranges box will always give you the answer.

dr_davinci
Автор

The logic is very simple actually..
Need to practice these more to get more fluent and solve them faster

sourjadhar
Автор

These puzzles are literally great...
Keep posting like this please 🙏🙏

vichaarthepoet
Автор

Literally no one
Me: By smelling oranges and apples can be differentiated 🤣👍

reenagarg
Автор

Wow 🌚
Pehli baar aisa hua hai ki comment section me bhi answer nhi mila 🙂🙂

only_if
Автор

Since all the boxes are incorrectly labelled, but a fruit that you take out from any one box is going to be exactly what it is .. These two facts will help to label all the boxes correctly. This is how it goes-

Choose the box that says apple+oranges. If you draw an apple, it means the box contains only apple(since the box is labeled wrong).Label it right --> apples

Now the other box that's say oranges, it will definitely have apples + oranges(box cannot contain oranges as it is wrongly labelled and apple box already labelled) and the last box that says apples will definitely have only oranges.

Hope that helps🙂

harwinderjit