Apple Interview Puzzle

preview_player
Показать описание
.
.
💻 Follow us on Linkedin:
.
.
.
.
#codinginterview #datastructures #datastructuresandalgorithms #leetcode #apple #shorts
Рекомендации по теме
Комментарии
Автор

There are 3 cases AA, AO, OO. Labels are initially always wrong for a box. Labels are only used once.
Always take a fruit out of the AO label box. If A is pulled the correct label is AA. Then flip the labels of the remaining boxes

kyleblanc
Автор

You can feel the fruit with your hand without taking it out, (texture of apples and oranges are different)
And, in the question it is only said you can only one fruit out, so just don't take any fruit out but feel their texture.

darknight
Автор

The answer is in question itself if we open apple+oranges and find out oranges then apple box will contain oranges and oranges contain mix fruit

frankfernandes
Автор

Reading the comments I just feel dumb and feeling to leave coding along with give up on my life.
Thanks 🙏

soulfulhuman
Автор

Pretty straight forward logic question

rki
Автор

Containing both apples and oranges. The box that must be opened is the one labeled "apples and oranges." By definition, whichever fruit is inside; is the only fruit type that that box contains. Let's say that you found an apple in that box that was labeled with both apples and oranges; because you know it must therefore only contain apples, then you conclude that the box that is labeled "oranges" cannot contain only oranges, as all boxes have been said to be mislabeled. Thus, the box labeled "oranges" must contain both apples and oranges, leaving the box labeled "apples" to contain only oranges.

vaishali.v
Автор

Dude it's so easy.
For example you take the first box with a label that says apples but there are oranges inside.
The second box for example says apples & oranges and the third says oranges.
The second would be apples and the third would be apples and oranges...

Marom_Haim
Автор

bro I thought you'd fall asleep in between while explaining

advaithpradosh
Автор

choosing apples n oranges to check it out would give the clue.

venktesh
Автор

Its pretty simple actually, the main point being the LABELLED are wrongly placed, so always pulls from Apple + Orange, if you pulled Apple then its AA cause wrong labelled, if orange then its OO, then the rest is also obvious.

Basically if you pulled O from AO then AA is OO and AA is OA, if you pulled A from AO then AA is OO and OO is OA

ansmitcrop
Автор

Open any box you want lets say you opened box with label A+0
And you pick up an orange, since the labels are misplaced so this box name can't be A because you picked a orange and also this box cant be A+0 because it was already told that the labels were misplaced, so the only option thats left is 0

Kirito_kirigaya_
Автор

We can feel the fruit by our hand simple answer

Roshan
Автор

pick lable with both orange and apple and check it

sivakrishnatummalapalli
Автор

At first puzzle seems to be tough and tricky. But once we understand the logic behind the question. Its pretty easy. I just did chatgpt . Then I found out pretty easy. 🎉

bhargaviparsi
Автор

if such questions are asked in Apple then I can clear it too lol

virasgaming
Автор

Sir please make vedioes more, so that it will help us a lot

WWE_FanClubb
Автор

Place the correct label for Box 1
Swap the label for Box x with Box 1

muhammadshahzaibqureshi
Автор

All the labels are wrong thats 90 percent answer then find the title of mix and pull out what you see is the whole fruit for that box.then when you go to label says orange or apple what ever one you pull out you use your previous answer for orange to find the difference. Thank you, please sit down i dont need a standing ovation please im just grateful for your standing ovation thank you all.please dont just sit down i dont deserve this, thank you.😂

peanutbutterontoast
Автор

I would just put my hand in it and feel, never pulling out. Then I could just feel which box is what without pulling out a single fruit. Easy.

iliketurtles
Автор

You should choose 2 boxes and try fist box labelled it, and choose second box try two times can able to find the answer

sabeekrahman