YAHOO Interview Puzzle || Camel and Bananas || Logic + Optimization
Вставка
- Опубліковано 8 лют 2025
- You are most welcome to share puzzle, math problems or any topics for upcoming videos.
Gmail : logicreloaded@gmail.com
Facebook(message) : / mohammmedammar
YAHOO Interview PUZZLE :
This puzzle is based on optimization skills.
You are the owner of a banana plantation and you have a camel. You want to transport 3000 bananas to a market, which is located at a distance of 1000 kilometers from your planatation. Your camel is used for banana transportation but it can carry a maximum of 1000 bananas at a time, and it eats one banana for every kilometer it travels.
(that means, irrespective of whether the camel goes towards the maket or towards the planatation , it consumes 1 banana for one kilometer of travelling)
What is the maximum number of bananas that can be delivered to the market with the help of the camel?
Hint : Start with the most obvious approach then try to optimize the solution.
Guys !! Don't forget to press the bell icon to get notified for every new upload.
Please like and share the video and if you are new please Subscribe to my channel and stay updated with a new logic every week.
If you guys didnt understand here is the explanation.
3k bananas at starting point
1k banana max carry
The camel brought 1k forward to first drop point of 200km. It ate 200 bananas, thus it had 800 left, since it is going back to pick up the rest it had to take 200 from the 800, thus there are only 600 bananas at first drop off.
It then picked up 1k more bananas, dropped the same 600 since it has to go back the last time to pick the remaining 1k. Since it is no longer going back the 3rd time, then it had 800 to drop off. Totalling 2k bananas at first drop point.
The 2nd drop point, the camel carried 1k bananas again and made 333km, thus eating 333 bananas, and only having 667 bananas left, since it need to go back again to pick up the last 1k, it took 333 bananas, thus having 334 bananas on 2nd drop point. Once its picked up the 1k bananas, it consumed 333 of it again to get to drop point, thus having 667 to drop plus the remaining 334 to have 1001 bananas on 2nd drop point.
Now this is where it gets weird. The camel can only carry 1k bananas. Thus 1 banana is wasted. The camel then traveled 467km to drop of the remaining bananas to the market, resulting of 533 bananas delivered out of the 3000 in the beginning.
you can't waste 1 banana because you have to transport all 3000 bananas otherwise it will be 2999 bananas rule is rule my friend. 😂
NooB GameR the camel owner finally ate 1.
Hahaha! Not a very good business plan unless you can also sell the camel. And if this is the case, then breed three camels and just sell camels!
Good explaination
If you have a stop at the 500km mark and another at the 750km mark, you can actually deliver 750 bananas. You will have 1500 bananas at the 1st stop and 1000 at the 2nd stop, finally 750 at the market place.
this is why yahoo is going broke
😁😁😁😁😁
Lmaooooooo
I believe in you 😂
Now it makes sense.
Lol.🤣🤣
Five minutes ago I had nothing against camels.
Logan Davidson hahahha
Haha
😂😂😂
😂😂😂
Does anyone notice that the length of the video is the Answer 😂😂😂
Tarang Parmar 5:33
Omg
u r xtra talented
I subscribed ur channel tarang...for ur intellectual
Wow!! Great observation man
Problem: Camels are worth more than 3000 bananas, and you can't take the camel home using the solution Ammar has made! If you want to get the camel home, you need to account for the lost bananas for the return trip. This means you have to remove 1000 bananas from the possible sale category, but NOT from the prepositioned cache category. Unfortunately, no matter what happens, the camel starves to death before getting home--the back-and-forth travel to move bananas to the caches consumes so many bananas that even if you make it to market and turn around without selling bananas, it dies before reaching the first cache again, after picking up the single banana left at the second cache.
It just eats negative bananas. :D
There was no requirement to return to the plantation.
No, the camel is sick of bananas, so he settles for tacos at the market.
So that's why bananas are so expensive these days.
It's a little late but.. you got it!!
Respect for the camel for eating that amount of bananas
My thoughts exactly. Hope he didnt throw up too much.🙈
and for anyone following behind
Not sure how camel biology handles potassium but something tells me somewhere around the second forward trip of the second leg of the journey our camel friend is dropping dead from heart failure
So the extra banana can be his dessert.
And then the camel dies on the trip back, since there are no more bananas
Lol
You sell the camel and takes an Uber ...
A small price to pay for *B A N A N A S*
You sell the camel in exchange for a luxury vehicle because a wealthy real estate mogul, his grandson, and their three other traveling companions needed to reach the Red Sea.
Lol this made my day
*when you feed 2467 bananas to the camel and only sell 533*
**stonks**
Devos Junior when you have to buy 1000 bananas to get back to the plantation and end up with a net total of -467 bananas
*not stonks*
533 sold, 3000 produced. Just below 18% efficiency. Market price of a comb of bananas is $18, this one sells at $100. Talk about of being ripped off!!
@DefinitelyNotDan Yeah! Speak of labor of $10 that yields $150 per hour. That's what real civilized world economics stand for!
What if he doesn't sell all 533 of them.
@DefinitelyNotDan damn you're dumb
"The camel eats 1 banana for every kilometer it travels" is not the same as "the camel needs to eat 1 banana for every kilometer it travels"
technically this puzzle is camel only eats while carrying bananas, not on the return trip
That was not explained before comming up with the solution. Stupid quiz. Go shmizzle a camel
Yeah, I assumed it wouldn’t eat bananas on the return trip. I got ~833 bananas to market.
You get 2000 bananas to 333m, then 1000 bananas to 833, then you lose 167 to the end.
@@timothyn4699Is it? where did it say that in the rules. It says for every km traveled, so it would need to eat them to on return trips too. That's why this doesn't make sense.
@@captbloodbeard it has to be only on trips to, not on return trips.
1) on return trips, camel is not carrying any bananas. How can it eat a banana it does not have (unless it makes up for it and eats a bunch immediately on return)
2) it's impossible to only be able to carry 1000 bananas at a time, need to travel 1000km, and must eat 1 banana/km (both ways), and still have bananas leftover. Think about it, if you carry all of them the whole way, it's all consumed. If you drop it off halfway, you have 500 left. You return 500km back home, your balance is now 0. If you travel 750 km, your balance is 250. You return home another 750km, your balance is -500 bananas. If you travel 250km, your balance is 750, and you still need to go 750km. Returning home only hurts you and drops your bananas down -250, so you have 500 remaining, yet now you need to travel 250 (to get back to where you were, you now have 250 bananas), and still need to travel 750 to market, so you're -500 bananas if you go to market.
hence, it must be the case, that camel does not require bananas on return trip (nor binge eat on return back), if the problem is going to make any sense, and if you are to have any bananas leftover
While this is great and I could not figure it out myself, the thing I immediately realized is that you aren't getting your camel back to the plantation. This sort of logic puzzle is good for seeing if you can think outside of the obvious and create efficient ways to optimize things, but it's ultimately a plan that should be scrapped.
Not really. You sell the bananas with high profits (they must be in demand if it's so tough to get bananas there), sell the camel too. Then buy a pickup truck and drive back.
Ironic the farmer lost 75+% of his revenue due to failing to innovate and Yahoo lost 75+% of its business to Google for a similar reasons...
LMAO
😝
And I just thought, feed the camel 2000 bananas before starting. That gives it fuel for the whole 2000 km round trip.😂 Load the remaining 1000, go sell your stuff and comeback home. No worries!😆
@@siddharthraychaudhuri7250 bhai vo camel h dinosaur nhi jo itne bananas ek sath kha lega 😂
The farmet loses 75+% of his banana revenue, and spends a FORTUNE on camel replacements each time he tries to make a delivery
So you don’t bring the camel back from the market?
Best comment..lol
Camel Kabaabs must be delicious.
they cant..no more bananas for the camel to eat on way back..
If the camal ate 75% of my product, i don't think id want to bring it back.
wizzardoffuzz he will sell the camel
Me thinking: What a waste of bananas😂
Me too. Also the camel is quite inefficient as it eats the farmer's profits
Why does that surprise you? It happens with fuel deliveries, too. The fuel is just stored in different tanks and the efficiencies are different. Think of what it costs to refuel a jet fighter in flight.
@@netpilot5 the fuel is the one get consumed, the goods isn't.
Then the fuel price is quite cheap, if you divide it per kg goods that it can carry.
This whole journey is just tip of an iceberg.
The camel will be sold in the market.
The buyer will store the methane and camel dung as fertilizer too.
So how do you know your bananas are safe when you leave them 250 km away from you?
did u forget the puzzle
King K Rool says don't worry, they'll be fine
a banana box
You don't, that's why the real answer is zero.
My questions in such an interview:
1) Does the camel *need* to eat a banana for each KM, or will it just eat one *if* it's carrying any? The question just states that the camel "eats" one banana per KM, not that it *must* eat one; camels don't typically eat bananas. That could change the solution by eliminating the need to carry bananas on backwards trips.
2) Is cache safety an issue? It isn't exactly feasible to just drop a pile of bananas in the middle of the desert, completely unattended and unguarded.
3) Even assuming the camel needs bananas for the return trip, once you get to the market having lost ~82% of your bananas (obligatory comment about Yahoo's business practices), how do you get the camel back home with no bananas? Do you buy feed for it? Why couldn't it eat the normal things that camels eat like grass, hay, leaves, thorny bushes, etc. during its trips? Or does it only run on bananas. Maybe you should trade in for a hybrid camel that can run on bananas OR regular camel feed.
And this is exactly why I consider a lot of logic puzzles not actually logic. Logic doesn't exist in a vacuum.
And I just thought, feed the camel 2000 bananas before starting. That gives it fuel for the whole 2000 km round trip.😂 Load the remaining 1000, go sell your stuff and comeback home. No worries!😆
@@siddharthraychaudhuri7250 and here we have the smart ass... I love it
😁😁😁😁
Number 1 was my first thought too. If the camel goes only 999 metres and drops its cargo then it cant eat any bananas :"D Go back, load the other bananas and go 999metres again. Repeat infinite times.
Now I realize the importance of motor engine after watching this video
Wait! Isn't 1 liter of fossil fuel the result of tons of dead bodies? Like how more effecient is the tons->liter/km compared with few kg/km?
@@reda29100 most of the fossil fuel is from plant and plankton.
And yes the fossil fuel is the most energy dense fuel after hydrogen and nuclear. You can carry more energy in 1 kg of gasoline than 1kg of battery.
@@satrioekowicaksono7452 okay, to clarify, I'm thinking and not asserting.
I'm suggesting the amount of energy stored in 50 kg of biological mass would decrease in time, and to use this 50 kg would be better than storing it. It would be more dense (maybe 2 times more dense, but may lose 10%), but less efficient overall.
Yes, draft horses could eat one fourth of the output of the farm.
During my interview for First American India , During the HR round this question was asked to me!!I approached but couldn't get it accurately!!Thank you for clearing my doubt!! 😍😍
U from which state in India
I wonder why they askef u this question unless the job requires great deal of logical and critical thinking.
@@ram1112233 They asked this question in HR round because I told the HR that my logical thinking is good!!And the job position was for the software engineer... And actually in HR'Ss and TR's some extra questions, out of the study syllabus is also asked!!
@@ranpicks3945 Odisha 😇
Rajshree Sahu
Ok It makes sense.
Who's is gonna tell the camel that it's been 1km and now you have to eat a Banana 😂😂😂
😂🤣😂🤣😂😂😂
😂😂😂😂🥰
Kah kah kah, indeed
😂😂😂
😂
The question needs to contain the line;
"In order to move, the camel requires a banana every km."
The way it is formulated currently, it is unclear whether the camel is opportunistically stealing a banana every km just because it can OR if the banana is required fuel for the camel to move the 1km.
In other words, I can empty the camel at the intermediate points and return to previous stage to refill - the return journeys cost no bananas.
Agreed, this needs clarification. I just wrote the same paragraph and then checked to see if someone else already wrote it:
It is unclear in the description of the problem that the camel MUST eat a banana in order to move 1 km (like it's FUELing the camel), or if it only eats them if they are available (as in a NUISANCE behavior of the camel). In other words, you could assume that if there are no bananas with the camel, it is still able to travel back to the plantation to fetch more bananas.
"the camel is opportunistically stealing a banana every km"--
Lol, even camels are shady in the middle east.
no, the question is fine
100% agreed. Had the same issue. I understood that the camel needed to make multiple drop offs but thought that the return trips didn't require bananas.
And 'it eats one banana for every km it travels' could be clarified to say one needs to be eaten every km, or the camel can eat many at one time to cover the upcoming kms.
I failed to solve this problem because I was trying to ensure that the camel had 1000 bananas to eat for the return trip.
The camel is disposable like a tech company employee.
Employ the camel for internship and now it won't consume any bananas.
And worth more than all of the bananas to begin with. @@kekistaniattackhelicopter2242
What a logical... Camel don't want to eat if it travels backward 😁😁😁😁
I’d find a closer market at this point
You see? Carrying from the next town 10,000 km away from us is cumbersome to say the least. So come there and help us load the cargo.
What I thought after getting zero as answer
We can maximise the banana supply by using 3 camel as the no. of camel is not defined.
We carry 1000 bananas on each initially, then after 334 (approximation) kilometres we shift the remaining 666 bananas from a camel to two others, making them to carry 1000 bananas. After they cover 500 km in this round they are left with 1000 bananas in total. The bananas are shifted on single camel which will carry 1000 bananas for remaining 266 kilometres. The bananas left at the end will be 734. This will be maximum no. of bananas that the dealer can supply to market.
The bananas left at the end would be actually 733, but I think it's clear enough that we have only one camel to work with.
Hey isn't 500 + 334 = 834 ? so 834 bananas will eventually remain
@@V7B817 yes
We can also hire a truck to deliver the bananas and sell the camel to profit even more, the rules are too loose on the exercise😂
But then your camels would starve on the return journey.
No camels were harmed in the making of this video 😂😂
😂😂🤣
What about the camel that didn’t have any bananas to go back home from the shop at the end
@@rishigupta8467 nah we ate the camel after selling the bananas
@@ko-Daegu we could have just done that at the start...
The puzzle immediately fails because it’s stated that the person wanting to transport the bananas wishes to ship 3000 bananas in total to the market. I don’t imagine the person shipping said bananas plans on any of said bananas to go missing or to be eaten by some banana-hammerspace camel. Immediately after 1 km, that goal of shipping 3000 whole and intact bananas is squashed and the entire puzzle is forfeit.
r u drunk
Good one! The correct answer would be plant more bananas. And do the trip with 3 drop points (Or buy a truck and sell the camel)😂
@@RoyMatzem No, just get a truck or at least build a cart and let the camel pull it.
The real solution is using science.
The fact alone how that with this solution on top most bananas will likely be rotten thanks to the wasted time.
Pretty sure cour camel got no cooling system installed to keep them fresh enough.
A camel can go for around 65km per day. That alone makes just those first 200km a 3x5 = 15 days journey.
The next woul dbe around 5x3 days, another 15, so already a full month.
Last journey woud at least be a single one so 1x7 days.
37 days for the whole show and that all on a camel back. Not sure how much there will be left from your bananas.
Max. bananas than can be transported is
a) Camel consumes in backward direction also: 534
b) Camel does not consume in backward direction but camel travels at least 1km in any direction: 999
c) Camel does not consume in backward direction but camel can travel any distance in any direction: 3000
a) 533
b) 833
And if the camel is allowed to eat fractions of banana each meter, a=533.333... and b=833.333... then also c=833.333...
incorrect. only a works
e)3000. My goal is transport 3000 bananas, and since the problem doesnt limit my time, i can plant more bananas until i reach the goal.
Thanks a lot for explaining why yahoo is out of business....
This is the height of stupidity...
We found the dummy, folks!
Fun fact: There is no banana delivered in the market,because all of the bananas got spoiled
Yes the price is like 70 rupees per dozen now..
@@tusharzala8035 bloody dumbass when you don't know English its better to stay calmed than to open your mouth
@@tusharzala8035 also r/woosh
@@Shashank_Anant what's wrong with you?
@@Shashank_Anant 'it's' and 'calm' you got two words wrong there in a sentence.. Really?
Honestly... I thought the answer was zero.. 💁
i assumed that i have an infinite amount of camels. my solution (using 3 camels) was to only walk forward, and redistribute bananas over 1 less camel once there's 2k or 1k bananas left, leaving 2 camels in the middle of a desert and carrying a total of 833 full bananas. let's see how (and if) its possible to optimize that
Would make sense when the Profit of the additional 300 Bananas would make up for buying two new camels plus profit
also any transactional and opportunity costs of seeking and purchasing additional camels instead of doing something else with your time and effort, and then dedicating those camels to this trip instead of another task
(I'm also going to assume additional transactional costs for selling the camels at each staging point which represents a village that has sprung up at the optimal point between the edge of the viable banana-growth zone and the market in order to sustain the banana-transportation economy, in order to avoid the inhumanity of abandoning a living subservient entity in unsurvivable conditions (and potentially preserve the availability of domesticated camels). I haven't quite finished figuring out what else if anything must be true about additional economic/logistical factors in the economy to justify the upkeep of those villages given that the banana traders are only bringing in a single banana to only one of the two villages each cycle of the trade route. If these villages don't happen to already be at these points for simply being at bodies of water or something else external, there has to be some other reason or incentive for them to exist. Some of the banana merchants are able to amass more than 3000 bananas and there is some sort of cultural custom or economic arrangement that incentivizes them to sell or donate a significant amount of bananas to those villages? Perhaps it's a market saturation issue, where they prefer to sell to the final market on the route because it's more profitable per unit and/or willing to buy the largest bulk of product, but will still sell additional freight to the intermediary markets. Or perhaps the patron making it possible for them to amass more than 3000 bananas per cycle in the first place has done so in order to direct them to transport the bananas to the final market)
That's the reason why I am not working in Yahoo 😂😂
I will sell that camel and buy a 2nd hand pick up truck . That's is more logical
And ask government to put a road.
🤣
"Camel eats or consumes one banana for every kilometer" - however, we don't know at which point of this kilometer camel eats this banana. If camel eats banana before making first step of each kilometer - we can deliver 534 bananas and don't waste 1 banana at point q.
Then the camel would weigh 1001 bananas and be overburdened, the legs would snap right off 🙄
@@oyuyuy At point Q, you have the 1001 bananas. You feed one to the camel and load him with 1000. Now the camel needs only 466 bananas to get to the market.
1) The way the inital problem was phrased, it felt like the camel was a red haring, so the answer would have been 3000 bananas
2) It's then rephrased to include "using camel only" - and we're advised to "think logically".
The problem is, if you think logically, no fucking camel can eat that many banas without suffering from potasium poisoning and/diarrhea, even if you'd wilfully feed it one per kilometer.
2b) Not to mention that, again: logically - an average camel's carrying capacity is closer to 280 or so Kilos, or roughly 600 pounds on the high end. An average banana weighs roughly 100 grams. So you need 10 for one kilo. If that's the case, you can just about fit all of the bananas on the camel in one go, skewing the results of the calculation, assuming what's shown on screen is accurate.
2c) The problem with travel - distance and overall came speed/pace
If we take into account all of the above, there are only two plausible scenarios:
a) The camel is actually NOT needed; in which case all 3000 bananas can be delivered to the market.
b) The camel is needed for the trip, but even with it consuming one banana per kilometer, and using multiple drop-points, ZERO bananas would reach the market, since bananas are notorious for their short shelf life (and they wouldn't realistically last the trip under assumed arid conditions - a climate in which camels are found).
There's one more whacky thing you can do with this, if logic flies out the window:
It's stated that the camel eats one banana per kilometer, but it's never mentioned to defecate.
I'll let you figure that one out yourselves.
I've never heard of this channel, but this first experience wasn't the best one. Without any mention of being allowed to drop bananas and go back for more, the question was quickly answered as zero. It would have made a lot more sense had the idea of intermediate stops been included in the question! I feel like the solution was presented pretty well, but it wasn't fully justified. How do we know there isn't a way to get more bananas to the market if we make multiple trips from one intermediate point to the market? I'm not saying I believe there's a better answer, just that it's not justified.
Edit: Reading some other comments, I see it also would have been helpful to include the fact that the camel must eat along the trip. But even then, you'll never get the camel back home. :-P
Yeah, if you wanted to get the camel back home then your maximum trip distance out is 500km, and the camel will eat every banana you set out with.
That was not logically solved , that was mathematically solved
Logic is just math in words...
Lol...this comment is trying to be a logic person...but failed
@@Bugoy_ADHD no it is not.
Logic and mathematics are two different branches of philosophy.
Very different.
NOOBDA GANG i solved it logically and got 500 banana's
@@Bugoy_ADHD No...Math is logic but advance
So no bananas are consumed by the camel for the backwards trips?
Camel consumes bananas on the way back. That is why it is 5X. (3 trips + 2 trips back)
aleyegros i assume hes talking about the way back
still need 1k to get back home....
@@BlueAristo that is why he sells the camel in town lol
camel can leave the banana at point B and then make backward trip.Nowhete in the question it mentioned that camel can't make trip without banana.
Why is this so complicated, just have the camel bring 1000 to the market, then go back to the plantation and eat 2000 bananas for each of the kilometers it travelled. The problem doesn’t state that the camel needs to eat while it’s traveling, so it can just eat the 2000 before or after the trip. This is pretty standard when you go for a run you’d typically eat and drink before or after, not during.
Ever went for a 2000km run?
The problem does state that the camel is eating on the go. "Every Km the camel eats 1 banana" its an anagram for cash spent in logistics, I am transporting x cash of product, but the trip costs x cash to make. How do I make it cost y instead. Where y < x
In logistics you do have to transport every single banana, the alternative being you don't sell product, and thus lose money on both product and logistical services.
That's pretty much the problem you face with rockets, without the round trips. Carry more fuel to be able to carry more fuel to go higher.
Yeah, and that's why we just invented a 3-stage Camel.
When I first saw the question I immediately thought it resembled a rocket equation.
I thought about it differently. You can breakdown in 1km trips where the camel walking 1km, drops everything but 1 banana to be able to go back. So walks 1km, drops 998, then again 998 and in the last trip is 999 (no need to return). Total cost of advancing 1km is 5 because there are 5 trips. This can be repeated 200 times since 1000÷5=200. At that point 1k are gone. Then do the same but with 3 trips only: 1000÷3=333. It's the same algebra but the logic is about small 1km steps
What if you left 1 banana at each 1km post for the return journey from the market back to your oasis? Would the camel still deliver something to the market? The answer is no but what if we started with 5,000 bananas? That might work...
Actually this puzzle is a little bit like bringing cargo to orbit.
Interesting thing here: I did not think of setting midpoints at multiples of 1K Bananas, and instead just moved all possible ones for 1 kilometer, going back the one kilometer, and repeating. This, somehow, results in the _exact same answer._
There are two differences in my scenario versus that in the video though: The video is putting you up to 333 KM away from some of your bananas at all times (but doesn't involve a bunch of turn-arounds), whereas mine makes it so you're never more than 1KM from all your bananas (at the cost of turning around almost all the time for half the trip).
I just tried to replicate this in an Excel sheet. After I came up with a formula, I then copied it down all 1,000 rows - and came up 1 banana short! (I only get 532 bananas to the market.)
Then checked what's going on and realized that at kilometer 533 I have 1,001 bananas but I send my camel back to fetch the 1 leftover banana, consuming 2 bananas on the way. _Not_ doing this one trip saves me 2 bananas (for the back and forth trip) but I have to sacrifice that 1 banana, so effectively adds one banana to the final count and thus I also get 533! 😀
In short, I should have accounted for these situations where the camel would go back for only one banana and insert an if-then step into the formula but since this only occurs once, it's not worth it.
Anyway, this is really interesting as it raises the question whether the individual trips can be set at an arbitrary length.
I guess, it gets more complicated for trips greater than 1 km because these situations where the camel goes back for just one banana need to be avoided lest the sacrificed bananas accumulate.
The reason of why those two are both correct solving in that fact, until first 1000 ends up all those 1 km movements will be the same (3 bananas per km), so all those same steps can be added to each other (e.g. multiplication)
And with 0.9999km Trips, you get all the Bananas over :D
Lol... First drop point is 200km... Camel will consume 1000 banana to travel back and forth 5 times..😂😂😂
With this kind of sloppy requirements, the answer is: You can sell all 3000 bananas. 1) Load 1000 bananas on the camel. Go 0.9km and drop off all bananas. The camel hasn‘t eaten any banana yet because it hasn‘t gone 1 km yet. 2) Go back and fetch another 1000 bananas to the 0.9km mark. 3) Repeat 2. 4) Repeat 1-3 1109 times. Easy 😁.
not really, when you go 0,1km back, the total is 1km so the camel needs to eat
@@senjosamathen by this logic he shouldn’t have rounded 333.333 to 333 and the total number of bananas consumed from Q to P is 1000 not 999
@@ExHyperion so at 4:27 he says that the kilometres cannot be fractional, we don't know why, but we can assume it is because of the kind of measurement you make. So if we assume this, you cant stop at 0,9km. If you could then his answer is wrong because you can travel 200km using 1000 bananas, then 333km +1/3km using another 1000 and you will be 1000-200-333-1/3=466 and 2/3 kilometres away from the market, so you only need 466 bananas leaving you with 534 that is one more then his. Also maybe you didnt notice, but in his calculation he leaves 1 banana at point Q
Its unclear in the video, but the bananas are camel gasoline. The camel doesnt work if you dont feed it, so this wouldnt work. Otherwise you could get all bananas to the market
Mohammad Ammar attendence here
Since time was a non-issue, couldn't you drop off 1000 bananas every 0.5 kilometer and keep going back-and-forth until all 3000 were moved 0.5 kilometer at a time, so there wouldn't be any bananas for the camel to eat by the time a given 1.0 kilometer benchmark was reached?
First trip 0.5 + return trip 0.5 km gives 1km
You can easily sell the camel instead.
My answer is "I refuse to work for a company that bases its hiring practices on a ridiculous logic puzzle."
These sorts of questions are asked to weed out the applicants who think the final answer is zero and then just leave it at that.
Answer is off by 1. You set Y to 333.3, but the camel will eat 333 bananas on the first trip, 333 on the second, and 334 on the third. Now you're 466.67km away from the end with 1000 bananas. The camel will only eat 466 bananas since it only eats at the 1km interval. Thus you can bring 1000 - 466 = 534 bananas.
You're wrong. Y is 333km, because it can't be fractaled
It's basically a semantical problem. As long as you don't account the 0.33 of a banana in it's stomach towards it's carrying capacity, there isn't a problem going 333.33km.
Even if you did count this towards the carrying capacity, you would also need to feed the camel before each km, and not after each km.
eating AFTER each full km would mean you never exceed capacity, as a 334th banana is ate from 1000 stock of the final 333.33km trip) 333+333+334=1000 consumed
eating BEFORE each km you *would* actually get 533 bananas, but only because you need a full banana for the last 0.66km of the 466.66km trip, whereas eating after, you are able to get the 0.66km for "free"
At the beginning (00:26) it is stated that "it eats one banana for every km it travels", to me this clearly means it only eats after the completion of a km.
@@oyuyuy .
@@oyuyuythe bananas can't be done in fractions in this problem, but the distance can. The camel isn't taking 1km long strides.
@oyuyuy Of course, bananas can be fractional. Never shared a banana before? But that isn't relevant. It just means that the camel doesn't have to eat a banana every time it gets to point Q, which is fine. Nothing says that points P or Q have to also line up with camel feeding points. What if the camel ate 3 bananas every pi km travelled? That should make it obvious that the consumption rate of bananas does not have to line up with stopping points. Also, it is okay if it finishes the trip slightly hungry, so eating 1 banana every km vs something like 5 every 5 km makes a difference in how many bananas make it to market as well. So I agree that the correct answer is 534. Moving point Q unnecessarily to make it 1001 km away makes 533 suboptimal.
You did not specify that camel can only move if IT consumes bananas. I mere assume that camel eats banana is it is on it's back. Be more specific.
After reaching 1st point the camel will have 1000 bananas in its stomach , so it won't be able to carry any more bananas because the max weight it can carry is reached, on the camel or inside the camel, wherever it is, weight is weight 😀😁😂
What we learnt today...
Camel🐪 eats Banana!🍌🍌🍌🍌😂🤣
And they are a one time use animal, as it can't come back to the farm.
It's a nice puzzle, but the solution wasn't as generalized as I'd have liked. Isn't there a way to do it with calculus, even if it requires differential equations using max points and tied elements? And while it's nice to use intuition for the multiples of 1000, intuition isn't rigorous even if correct :) For the record, when I approached it I only thought of equal distance drop points (it's practical when there is no underlying plan), and so ended with the suboptimal 500 bananas (instead of the possible 533), by dropping (eg) 500 bananas at the 1/4 point, then dropping 250 bananas at the 2/4 point (and using 250 from the 1/4 point on your way back), then finishing the trip with using the 500 in the two points, thus ending with 500. But it wasn't generalized, just one case, obviously there could be others and of course it was suboptimal.
Agree that assuming you are going to have 1000 bananas at the last drop point is to some extent assuming the conclusion. You need to prove that there isn't some benefit to be had by just "sacrificing" some bananas to some other consideration, and having, for example, a drop point with only 800 bananas that is over 200km closer to the destination.
Here's how I would rigorize this solution (sketch):
Claim 1: It never makes sense to leave bananas behind. (For example if you start with 3007 bananas, you can move the 3000 banana pile 1km forward instead of ditching the 7 bananas)
2: Suppose we travel west to east. Then if I tell you how many times the camel travels eastbound over each spot X, then the total number of bananas you get in the end is the same regardless of the specific path taken.
The total number of bananas traveling eastbound over X is > 1000n (n is an integer) and
🤓
Here's a few quick observations that might help analysis:
- _You_ need to travel to market. This establishes a fixed minimum cost of 1000 bananas (one way). Any additional "roundtrips" (say, to carry some bananas to an intermediate drop point then return) will cost 2 bananas per km.
Someone tell the narrator that camels also eat on their way back.
After 1st drop of 1000 bananas since he is going back to took 1000 bananas he can carry 200 bananas to eat in the way 🎉🎉🎉🎉
Transporting bananas to a market 1000km away using camels? Instead of finding a closer market, or using a car? Sounds like something Yahoo would do.
That camel eat too much. Use a car then. Maximum 3000 guarenteed
Car will consume banana if it run out of oil.
@@tankokhua7052 do you mean gas?
@@donkeytrump fk it use bananas for the car XD
Problem is actually about concept of fuel fraction, which is very important for bulk shipping no matter what mode of transport is used
@@jaygreen7494 although is much more complicated because the more you carry, the more gas you consume per kilometer. The camel eats one ban/kilometer regardless how many she carries.
This problem requires that you sell the camel at the market, because you cannot get it home. It seems to me that pointing out this fact is much more important than determining the number of bananas you can get to market!
That's not part of the problem. It says that the camel eats 1 per km, not that it has to in order to survive.
@@jttech44No, you are phantasizing concessions that aren't provided. If it needs 1 banana / km travelled, then it will need 1000 bananas to get home from the market. Otherwise it would not have needed them on the return trips from the caches either, *obviously*. Otherwise it would be the first camel with an unidirectional eating habit. Without selling (or abandoning) the camel at the market, no bananas can be delivered this distance (and returning with the camel). In fact, even with the optimal solution, and no sale at the market the camel would die (or stop) 466 km from home, obviously.
So the optimal solution is not to depart. Unless you intend to sell the camel along with the banans.
@@Flexximilian my solution is within the bounds of the game. Don't hate the player, hate the game.
Did you notice that if the person realised that Camel will need to eat the bananas on the way back, after reaching point Q, he can take the remaining bananas and start his travel back. He will barely make it back home.
Plot twist : the camel was never intended to make the way back :0
I think it's better to consider rounding at the end. The owner can't sell a fraction of a banana, but there is no reason why the camel can't eat part of a banana going in one direction and finish it going in the opposite direction. Or cut a banana into 3 parts and consume each part at a different point in time. Continuing with this approach, the camel has 1,000 bananas with 466 2/3 km left to travel. This leaves the owner with 533 1/3 bananas at the market, yielding the same, identical solution of 533 bananas.
On the other hand, leave segment PQ at 333 km (instead of 333 1/3), and drop 1 banana somewhere along PQ during the 1st or 2nd (of 3) trips across it. Reclaim it in the 3rd (and final) trip. so now you have 1001 - 333 + 333 = 1001 bananas left at point Q with 467 km left to travel. Take 1 banana and toss it forward 1 km, so that you can pick it up after the camel consumes 1 banana. (If your throw lands short of 1 km, when you get to it, pick it up and throw it forward again. Realistically this may take 20 to 25 throws.) Now you will have 534 bananas at the end. The problem with this solution is that you could be tossing bananas forward the entire time, so much that you could get 2000 to the market.
Given that the camel is expected to make the return journey, I think it's fair to assume the camel only eats bananas while transporting them. If that's the case, you can change 5x to 3x and change 3y to 2y. Then you have 333 1/3 for segment AP, and 500 km for segment PQ. Lastly 166 2/3 km for segment QZ. This leaves 1000 - 166 2/3 = 833 1/3 left at the market. With this assumption, the answer is 833 bananas.
Well, I just made a quick and dirty layout.
Go 1/4 of the way drop 500 go back
(2000 at start
500 @ 1/4)
Pick up 1000 at start
Grap 250 @ 1/4 going to middle drop 500 and I go to start picking up 250@1:4
Now you are at the start with 1000- 0 @ 1:4- 500 @ 1:2
I’m at 0:36 atm in the video but this is a quick and dirty 2 mins thinking solution so it’s definitely not the best but good enough for me.
To finish you grab the remaining parts 1000 that are with you at the start and pick up the 500 in the center as you pass by. Leaving you with 500 @ the end.
Like I said I didn’t get past 0:36 and only spent two minutes thinking this one out but.
Then you realize that having a camel eat your bananas is inefficient and you just drive a pickup truck instead
Who's that guy.
Somebody should donate him a truck
But at that point we would have no problem to solve, and that IS A PROBLEM! You bring problems with you wherever you go by not giving us problems to solve!
@@reda29100
Ah! And I thought people still understand sense of humour
We need to SOLVE PROBLEMS!!!
PROBLEMS!
So didn't I just solve the problem of banana wastage
Here's an out of the box solution:
At the starting point, feed the camel 1000 bananas. Now, it can travel 1000km.
Then, load 1000 bananas on the camel. This way, the camel can carry 1000 bananas to the market.
Prove me wrong.
Sure, just need a camel and 3000 bananas
Sure, just fuel that baby up and you're good to go.
Pal there is a limit of food one animal can eat at once
@@Sorya-gf7qw that wasn't addressed in the original question. And don't say "common sense" when we're talking about a camel that eats exactly 1 banana every mile it walks and nothing when it camps overnight.
Even better, feed him 2000 instead. That way you get your camel back to the plantation for free as a bonus, carry and sell the max load, and no bananas get left behind or spoil.
2 questions.
What is the camel walking speed?
Wouldn't the bananas be spoiled before the start of the second trip?
Camal comes with high tech refrigeration. Bananas will survive in camalfridge
But banana fridge consumes 2 bananas per km
1. Hate maths
2. Having 3k bananas and selling only 533 is a fools idea.
3. Sell the camel, buy a mechanical vehicle
4. Sell your own bananas, damn it!
5. BTW, does the camel know it's been a hundred kilometers?
*OR*
Tie a banana to a fishing pole and set it before the camel, you get the idea.
Difficult to digest the fact that by having stoppage points & going back & forth, the total distance travelled by camel actually reduced. As actually it was about minimizing the travelled distance of camel.
No, the total distance traveled by the camel is INCREASED, significantly. What’s increased is the number of bananas available for it to eat during the trip. The multiple trips make all 3000 available, not just the 1000 it can carry at one time.
So the camel consumes roughly 2500 out of the 3000 bananas every time the farmer sells his produce?
The practice is inefficient overall... He should get a truck instead.
And also u can't take 🐫 to home 😂
Not every time, only on the first trip... Because camel is sold, or dies, or something,. But camel is NOT coming back on banana power!
@@marvinkitfox3386 sell the camel, keep the economy running XD
I think that the maximum number is infinite, because it said that you *want* to deliver 3000 bananas, not that you *have* 3000 bananas
This was crazy, i thought it had to be zero
533❌ 833✅
833 is the correct answer
it is a wrong answer I give the correct one. Let distance AP is 333 km in three trips of 1000 bananas the camel eats the 999 bananas we reach the point p with 2001 suppose 2000 bananas and cover 333km. Next Distance PQ be 500km so in two trips of 1000 bananas camel eats 1000 bananas and 1000 bananas are left hence we reach at point Q with 1000 bananas and cover (333+500=833)km now we have 1000 bananas and we need to cover remaining 167 km so in which camel eats 167 bananas the remaining bananas are (1000-167=833) so at market we have 833 bananas
Didn't specify how many camels.
So, for the first case let's take 2 camels travelling simultaneously.
After each km they lose 1 banana.
We'll transfer 1 banana in each km from the 2nd camel to the 1st.
1st 🐫:- left with 1000 bananas in 500kms so delivers 500 bananas.
2nd 🐫:- left with no bananas after 500km(let it die)...
*Answer can vary*
By the way it was specified "You have a camel". Even with your assumption of two camels you are delivering only 500 bananas... which is less than what we achieved with one camel(533). I think the extra camel is not going to contribute anything in the final output that can be achieved with just one camel.
@@LOGICALLYYOURS see the last sentence - *Answer can vary* by taking more camels
Was it specified??
And this is not the correct answer. BTW it is just for understanding purposes... (I haven't gone with the question - took 2k bananas)
@@roshandon3157 I just calculated... with multiple camels, it can deliver more than 533. Thanks for bringing this point... we can later have another video with multiple camels.
Here's a quick solution just to show that using two camels we can deliver more than 533.
P.S. : I can further optimize it to get around 600... but I just wanted to quickly show this.
Camel1 - Carries 1000 and travels 750 km.... we get 250 bananas at point P.
Camel2 - For remaining 2000, it travels 333 km and manages to bring 1001 banans at point Q.
Camel2 - From Q to P its (750-333)=417 km... so out of 1000 Camel 2 eats 417 and delivers 583 bananas to point P.
Point P now has : (250+583) = 833 ... distance remaining to market is 250km...
So, any camel can now travel carrying the remaining bananas and deliver 583 bananas to the market....
Again I'd like to mention, that by shifting point P towards left a little, we can try to increase the output a bit more. I will calculate it and update later.
Per the rules of the puzzle... the camel takes loads of 1K bananas for trips of 0.99km. The camel never reaches the 1km = 1 banana point throughout the entire trip, so all 3000 bananas make it to market (eventually). 3,031 "trips" of 0.99km each
This is the optimal answer given the stated goal.
If they incorporated time into the problem, it wouldn't be, but, because you have infinite time, you can leverage that to produce the outcome you want. Recognizing an unlimited resource is important when considering these sorts of puzzles.
That's what I would've answered and said, ok but assuming we can't do that, and then continue on with the puzzle.
I got a different solution (I realize that I assumed that the camel doesn't eat on the way back because it isn't carrying anything, so it's probably wrong if you consider that the camel eats on the way back even if you aren't carrying anything)
- The amount of bananas you have left after getting to an x amount of distance is: Amount = n - t*x (n is the amount of bananas, t is trips made and x is the distance traveled to)
- Afterwards the distance remaining changes from 1000 to 1000-x
- If Amount1 >= 2000 or x Amount1 >= 1000 or 333,33km < x 666,66km
Ex: 800km
Amount 1 = 3000 - 3*800 = 600 bananas at 800km
Amount 2 = Amount1 - (1000 - x) = 600 - (1000 - 800) = 400 bananas at 1000km
- If you go through the three options you would notice that if you try to maximize the value for all 3 cases:
Case 1: x 999 - (1000 - 667) = 666 bananas at 1000km
TL:DR;
Thus in all three cases the maximum possible number of bananas delivered are 666 bananas. The differenece between them is that in case 1 has the most leftover bananas and case 3 the least.
You really explain complex problems in very simple and awesome way..
Thanks
I could reason upto that the final halt should be 1000km before the market and that there would be only one trip to the market with 1k banana.
I tried logic that on moving complete stock k km forward, camel would eat up 5k banana so to maximise (in each trip) bananas remaining per distance travelled ->
(3000 -5k)/k
or k should should be minimum =1
->
This way after moving stocks n km forward, remaining stock is (3000 -5n)
->
3000 -5n =1000 -> n = 400
So after 400 km, 1000 banana is left and so the camel will set out with 1000 banan and will be left in the market with 1000-600 = 400 banana
However, the logic presented in the answer is better and so it is...however how can one conclude straightforward that multiple of 1000 should be left....
Interesting puzzle. I never considered the possibility of dropping bananas along the way, so it didn't seem possible to me.
It's possible only in math world. In real world, if the camel needs to eat a banana to travel 1km, then it dies on the way back from those short trip and you are out a camel as well as all the bananas.
The puzzle fails to state that the camel only needs to eat bananas while carrying them, or that it only eats bananas while they are available and the plantation owner is somehow incapable of putting a muzzel on the camel
I took three camels, and one the load was down to 2000 bananas put them all on two and cut the third loose.
Once down to 1000 bananas put them all on the last camel and cut the other one loose.
@@mikespangler98 The question constrains us to use 1 camel only. Otherwise your suggestion would indeed be more efficient, since it cuts down on the back&force travels.
Sell the camel, buy a pick-up truck.
These solution is worst man, It's Banana not Coconut it will be destroyed by your distance and time.....
Good point
You can cut it before it is ready to be harvested so that untill it gets delivered it will be ripe and ready...
Also the solution in this video is lame AF 🤣
Haha.. 😂😂🤣 literally 0 bananas and infact I need to buy 467 bananas from the market, to bring my camel back with me 😉
Maximum 600 bananas can easily be delivered to the shop (without making things complicated).
Explanation.
Step 01: camel will pick 1000 bananas and dropped at point on 700km(and has eaten 700 bananas ; and now 300 km and 300 bananas are remain)
Step 02:
Camel move back again picked 1000 bananas and dropped at same location(now at that location 600 bananas are present)
Step03:
Repeating the previous steps now at that location total bananas are 900, and distance remaining is 300km.
Last step:
Simple picked those 900 bananas and after eating 300 ; 600 bananas will be delevired to the shop :).
Its that simple..
Give me heart if you read my comment. Ammar bhai.
There is a problem with your approach... The camel cannot have the first point beyond 500 km... because it also has to come back to origin, and it eats one banana per KM...(even if it is returning).. So, at the point of 700, he will have only 300 bananas which are not sufficient for returning...
Due to this issue, we have to keep the point well within 500 km mark... then we have to optimize it.
@@LOGICALLYYOURS in my approach my camel traveled 100 km everytime, stopped and returned. Through somewhat the same logic I also got 600 bananas.
I would have sold that camel.
For that also you have to go to the market 😅
And lose 1000 bananas in the process
@@afelix lol 😂😂🤣🤣
I thought the answer would be "just don't use the camel" or "shoot the camel and buy a new one which won't steal your bananas" 😂
The most optimal solution there is if seen practically by not using the camel as the source of transportation 😂🤣 🤣😂 😂😂 😂😂 😂 because it's full of loss....here you grow 3000 bananas and you sell not more than 350 bananas what a loss😂😂🤣🤣😂😂😂😂😂
NiVi Rajput not only do you sell 350 bananas but you then have to buy 1000 bananas to make the trip home with your camel. So you’re now dome 650 banana dollars. Mental.
That's why yahoo is out of business
It's an interesting approach, but the solution is not correct. The maximum number of bananas is 833
There is a wrong assumption that there should only be two intermediate points while there is no such limitation in the puzzle. It is more optimal to make a stop on every kilometer
I'm not a mathematician, my solution was to make the first part of the trip (point A to p, to be clear) for 250km, then another 250km to point Q and bring to the market 500 bananas.
This is why I never use camels... lol
No wonder our agriculture industry is at loss. And you call it logic.😩
This is a solution when least time is not a factor. Also, leaving banana in a desert for such long period???
time is not a factor cause you can't get any profit if u save time plus replace banana with potatoes etc.....hope u got my point
1:00 Actually wrong. If you fed the camel one banana at the start of the trip, then loaded up 1000, he'd only eat 999 more, thus deliver one to the market (and then be stuck there since he would have nothing to eat on the trip back).
Not completely unambiguous. Nowhere was it mentioned you can use only 1 camel, nor does it mention you cannot discard a camel once "empty". I can transport 833 bananas using 3 camels, ditch one after 333.33 km (2000 bananas left), ditch the 2nd after 500 more km (833.33 km in total and 1000 bananas left), final trek using 1 camel holding 1000 bananas takes 167 extra banana, leaving me with 833 banana at the end.
Is there a way to prove that this is the most optimal strategy? I understand the intuition but still.. we see that finally at point Q we did not have multiple of 1000
When we work with optimization, we approach towards the best value, then make adjustments if required... First we calculate the value of Y = 333.33... but due to it's fractional value we either have to adjust it to 333 or to 334. Since the segment PQ has 3 trips, so it's better to have lower distance value from the two options... so we chose 333. If suppose you take 334, then you get 998 on point Q, then 532 bananas will be delivered to the market.
LOGICALLY YOURS but you haven’t proven that those choices are the most optimal. That would require calculus.
@@LOGICALLYYOURS Why do you have to adjust for a fractional value at this point? i get it would make no difference in the end as you probably cant sell a banana that a camel has eaten 1/3 of but at point Q the camel could be part way through a banana and finish it off on its way back to point P
00:06 Transport maximum bananas using a camel.
00:45 The camel should make several short trips with intermediate drop points to optimize banana delivery
01:30 To maximize the number of bananas, the camel needs to make five trips.
02:12 Two forward trips with camels carrying 1000 bananas reduces output number.
02:51 Optimize drop points for bananas transportation
03:28 The camel's forward trip is determined by simple mathematics
04:17 The distance between points P and Q is 333.33 kilometers.
05:02 A camel delivers 533 bananas to the market
Except that as there’s no point at which it says you can do intermediate trips, I will assume that I have a giant catapult and can catapult all 3000 bananas to the market with a loss of 10% of bananas due to damage. So that 2700 bananas will be delivered successfully to the market.
Logically you want to return home riding your camel, and you only have 533 bananas left?
Those who are questioning for camel come back from market. I must tell you this question is for entry to company.
For exit you have to make your life miserable. 😂
Twisted answer but true
What do u mean "for exit"? As in to leave the company, it'll be much harder? Why, if so?
A) Geez, find a closer market. B) My solution was to stop every km, keeping my bananas closer to hoof. After 200 km, can drop to 3 trips, and then around 533 down to 1, as you found. C) your Y value is a fraction of km but no one said you had to feed the camel exactly at the km marker. You can set your waypoint at 333 1/3 km, and you just turn around with 2/3 km before the camel wants a banana. D) This banana-guzzling camel is clearly not making it back to the plantation.
I don't think it can be solved since you have to feed the camel 1 banana per km for all the return trips too.
Dead camel from hunger = no banana sales
You can actually bring 534 bananas. There are two ways:
1. Overfeed the camel at the second drop point
2. Leave the one banana behind and force the camel to die of starvation the moment it enters the market.
And I just thought, feed the camel 2000 bananas before starting. That gives it fuel for the whole 2000 km round trip.😂 Load the remaining 1000, go sell your stuff and comeback home. No worries!😆
If camels tend to eat most of the stuff they carry, the real optimum solution was to never domesticate them amd let them lin peace in the wild from the beginning 😁
Bought 3k 🍌 to get profit and then lost 2.5k😂😂😂
And in the market, customers are being ripped off.
533/3000=18%
Say the cost of producing a comb of bananas is $18. If he sells at the market at that price, he accumulate losses because of camel's banana consumption. Loss of $82 per comb of bananas. To cover that losses, they have to sell them at $100 apiece. While their competitors are selling at $20 or so. And in the end, no one buys his bananas because of that ridiculous pricing.
If that happened in my country, the farmer will be fined because our govt had set a ceiling price for such commodities.
Moral of the story is... Don't go too far to sell your products. I mean, 1000km? WTF? Keep the distance between farm and market to within 10km. More reasonable.
Now if he did really sell at $18 apiece, he will accumulate losses. Well, that's how startups began, registering losses in the first years, before breaking even and then started to accumulate profits. *Remember Coke sold only 25 bottles in the first year.*
How will the farmer overcome this? Of course he'll constantly registering losses if he did nothing special. Remember the 1🍌 missing at KM533? Instead of eating it or selling it, *plant it.* It'll grow over the years and some of the 🍌🍌🍌 can be replanted to produce even more 🍌🍌🍌🍌🍌🍌. Basically he will have a new farm at KM533.
Who knows, in a few years' time, he enjoys a huge revenue of $800000 a year...??
...no...that answer is illogical for several reasons, but the quickest hole to punch in that solution is the fraction being rounded off. In any system where fraction can add up to whole numbers, fractions must never been rounded off. The .33 that gets rounded off would just appear later on with Z's .66. So the answer per the stated method is actually 532. But if Yahoo is willing to let us just drop fractions, then we can actually get 792 bananas to the market by gaming fractions of a distance to short change the short change the Camel.
Granted, Amazon, Doordash, Uber, and many others already try to game fractions in real life, so who knows.
How on earth did banana grew in desert