Interview Riddle - 16 Bikes || Logic and Optimization Puzzle

Interview puzzle :
There are 16 motorbikes with a tank that has the capacity to go 100 km (when the tank is full).
Using these 16 motorbikes, what is the maximum distance that you can go?
-All the motorbikes are initially fully fuelled.
-They all start from the same point.
-and Each bike has a rider on it.
Pls Note: We just have to find out the maximum distance that we can go, We don't want all the bikes to reach at that final point.
It's not a hard riddle, however, it requires a brain twisting trick to solve this problem correctly.
So, Pause the video and think logically.
It's an amazing Google interview riddle to challenge your intelligence.
So if you are looking for a job at Google, please study optimization based puzzles in detail.
You can share puzzles and riddles with me on these links:
Gmail : logicreloaded@gmail.com
Facebook(message) : / mohammmedammar
Also try these brilliant mind blowing puzzles:
5 Pirates PUZZLE (Version 2) | 100 Gold Coins 5 Pirates
• 5 Pirates PUZZLE (Vers...
Trains & Bird Puzzle || Challenge for Math and Aptitude lovers
• Trains & Bird Puzzle |...
Very Tricky Race Puzzle
• Very Tricky Race Puzzle

Пікірлер: 597

  • @piyushborse
    @piyushborse3 жыл бұрын

    Is it only me who thought attaching bikes with the ropes, a perfect indian solution

  • @literallylegendary6594

    @literallylegendary6594

    3 жыл бұрын

    There are no ropes in the problem.

  • @piyushborse

    @piyushborse

    3 жыл бұрын

    @@literallylegendary6594 😂there are no pipes and funnels too in the problem to transfer fuel.

  • @TheJschulter

    @TheJschulter

    3 жыл бұрын

    Exactly! And even assuming each bike can only tow one other, you still get 500km!

  • @yodan00b

    @yodan00b

    3 жыл бұрын

    @@literallylegendary6594 there may not have been rope, but each bike has it's own rider.. just make it their responsibility to hold on to the bike in front of them ;)

  • @pablomartinsantamaria8689

    @pablomartinsantamaria8689

    3 жыл бұрын

    Me too

  • @pintokitkat
    @pintokitkat3 жыл бұрын

    The maximum distance that can be covered is 1600 km. The riddle does not say 'what is the furthest you can get from the start'. It says 'what's the maximum distance? '

  • @OscarLT321

    @OscarLT321

    3 жыл бұрын

    *alll bikes start from the same point, is part of the conditions

  • @pintokitkat

    @pintokitkat

    3 жыл бұрын

    @@OscarLT321 on a 100km circular track a bike will run out of fuel back at the start, at which point I get off my empty bike and get on a full one and continue. After I've used all the bikes I have traveled 1600 km and not broken any of the conditions.

  • @OscarLT321

    @OscarLT321

    3 жыл бұрын

    @@pintokitkat With that logic you could also say it's way beyond 1600 km if you can refuel after each lap. There are millions of loopholes to get out of solving an equation

  • @company5685

    @company5685

    3 жыл бұрын

    @@OscarLT321 what he says is perfectly logical and you come around the corner and compare it to refueling? where does this come from xD

  • @SusEGP

    @SusEGP

    3 жыл бұрын

    Yeah not displacement

  • @Jeffsd17
    @Jeffsd173 жыл бұрын

    Interesting problem, clever solution. I figured out the concept, but had Excel do the math. Unfortunately, you miscalculated one number - Milestone #9 is 12.5 km, and the correct answer is 338.07 km

  • @grantschade2072

    @grantschade2072

    3 жыл бұрын

    @Ethan Goldberger just shows how many people lie about stupid shit like this

  • @joshriver7749

    @joshriver7749

    3 жыл бұрын

    I was wondering why my phone calculator wasn't giving the same result, thanks a lot.

  • @mrgyani

    @mrgyani

    3 жыл бұрын

    I used excel too. Arrived at the same answer as you - 338.0728993 kms

  • @dividebyzero1000

    @dividebyzero1000

    3 жыл бұрын

    @@mrgyani LOL, it is only us excel users that caught this...

  • @Ni999

    @Ni999

    3 жыл бұрын

    @@dividebyzero1000 Approach is obvious and so is the formula. ([1 to 16]∑ (1/n)) × 100 Wolfram Alpha user here, caught it immediately with less work than Excel. PS - H[16]*100 if you can remember to use the function for that. I never do lol.

  • @namdoolb
    @namdoolb3 жыл бұрын

    Mathematically optimal, but possibly not practically so: You gain just over 12% distance over the unoptimised solution, but have to stop 4× as many times, and the siphoning operation at each stop is much more complex because instead of each donor bike donating to one other bike it's donating to x other bikes. You'll gain a little ground, but at a considerable cost in time. Now, I realise the bike scenario is an abstract & that you are demonstrating a mathematical concept. But this does also demonstrate that the best solution is sometimes the one that is "good enough".

  • @AdelaeR

    @AdelaeR

    3 жыл бұрын

    You wouldn't call your solution "good enough" when stranded in the desert and your only hope is to reach help.

  • @namdoolb

    @namdoolb

    3 жыл бұрын

    I think you miss the point of my comment

  • @ejrupp9555

    @ejrupp9555

    3 жыл бұрын

    Didn't see the question as practical, it just asked for a maximum. The practicality of it increases with the distance a bike could cover. If a bike could cover only 1 foot with a tank, then it's more practical to just walk. So practicality is something of an opinion. 38km for the cost of the change in time it takes to distribute the fuel in the tanks. How long does it take to push a bike that far? Longer than that change in time cost, I imagine.

  • @UncleKennysPlace

    @UncleKennysPlace

    Жыл бұрын

    Practical engineering never approaches theoretical efficiencies.

  • @deepmayekar140
    @deepmayekar1403 жыл бұрын

    My brain just assumed a circular track and calculated 1600 km distance 😅

  • @johnstygall860

    @johnstygall860

    3 жыл бұрын

    My thinking exactly..much simpler solution

  • @happygoyal594

    @happygoyal594

    3 жыл бұрын

    Then starting point and ending point will be same so the distance will be 0 🙄

  • @hrishiharshsengar9499

    @hrishiharshsengar9499

    3 жыл бұрын

    @@happygoyal594 displacement*

  • @harishmr5426

    @harishmr5426

    3 жыл бұрын

    Assuming one bike is used for 100 km to pull the remaining bikes… We can cover 1600 km ig😂

  • @happygoyal594

    @happygoyal594

    3 жыл бұрын

    @@harishmr5426 🔥🔥🔥🔥😂😂

  • @JoaoManuelCanelas
    @JoaoManuelCanelas3 жыл бұрын

    start 1 bike, ride it for half tank in one direction, reverse until you're back at the starting point. Repeat process to any bike that you haven't rode yet until there's none left. Distance travelled: 1 600 km

  • @gouravpandey3513

    @gouravpandey3513

    3 ай бұрын

    I also solved in the same wY 0:35

  • @IanDangerfield
    @IanDangerfield3 жыл бұрын

    You guys! I was able to solve this with the optimal solution and code it in python before seeing his solution. It's significant to me because it's the first time I've solved something from scratch. As already mentioned the end total distance traveled is actually 338.07km. Thank you for the challenge!

  • @abhisarbankar

    @abhisarbankar

    3 жыл бұрын

    Great

  • @bluemoon6611

    @bluemoon6611

    3 жыл бұрын

    If possible can u share the code?

  • @ClearAlera

    @ClearAlera

    2 жыл бұрын

    I did the same thing in C++ and got 338.073 as well. Here's the code: int main() { float TotalMiles = 0; float NumberOfBikes = 16; while(NumberOfBikes > 0) { TotalMiles = TotalMiles + (100/NumberOfBikes); NumberOfBikes--; } std::cout

  • @aksh9517

    @aksh9517

    2 жыл бұрын

    There is an error in video where 100/8 = 12.25 is shown, which should be 12.5 hence your answer is most accurate

  • @bluemoon6611

    @bluemoon6611

    2 жыл бұрын

    @@ClearAlera thank you

  • @DJSaez-ll8or
    @DJSaez-ll8or Жыл бұрын

    Although the problem could have been worded better, the solution was very interesting! Thank you!

  • @lab483
    @lab4833 жыл бұрын

    Hooray one I got strait away, I'm usually slapping my head for not getting it. Thanks for the ego boost and keep the great puzzles coming.

  • @Anoxonamoon
    @Anoxonamoon3 жыл бұрын

    the correct answer is 338.07 km (and that's what i got) and not 337.818 and that's because you miscalculated 100/8=12.5 and not 12.25 as you showed at 5:15 thank you

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    Thanks for bringing this to my notice... you are absolutely correct bro.

  • @OrenLikes

    @OrenLikes

    3 жыл бұрын

    partial harmonic series, H16*100km = ~338.073km!

  • @sergeyg2926
    @sergeyg29263 жыл бұрын

    For 8 bikes, the value should be 12.5, not 12.25, I believe.

  • @DayTheWeek

    @DayTheWeek

    3 жыл бұрын

    I ended up with a combined distance of 338.0729 kilometers.

  • @stevendoyel
    @stevendoyel3 жыл бұрын

    Basically: eliminate as many bikes driving as soon as you can (this eliminates the number of bikes consuming fuel)

  • @cvindustries

    @cvindustries

    2 жыл бұрын

    This riddle doubles as a great explanation of asparagus staging in rocketry

  • @jdmbone003
    @jdmbone0033 жыл бұрын

    Take the tanks off of the 15 other bikes and swap them out every 100km for a total of 1600km

  • @montythebugman6308

    @montythebugman6308

    Жыл бұрын

    Are you could try using math. I'm guessing it took you a looooong time for you to learn how to color within the lines, am I right?

  • @ExaltedwithFail
    @ExaltedwithFail3 жыл бұрын

    KSP and asparagus staging taught me this. Gotta love interchangable knowlege

  • @anandgurumurthy6034
    @anandgurumurthy60343 жыл бұрын

    What if I rode 50 km and came back to same point 16 times. I would have covered a distance of 1600 kms without going anywhere though but I would have covered the distance.

  • @kamild685

    @kamild685

    3 жыл бұрын

    The task is how far can u go not the maximum distance you can cover.

  • @Ni999

    @Ni999

    3 жыл бұрын

    @@kamild685 The thumbnail literally says, "What is the maximum distance you can go?" The maximum distance you can go is 1600, the furthest you can go is ~338.073, so I'd accept both answers if it was up to me.

  • @rohitjathot4031

    @rohitjathot4031

    3 жыл бұрын

    Agree with Anand. We need to find max distance not displacement.

  • @marvinkitfox3386

    @marvinkitfox3386

    3 жыл бұрын

    That is a valid solution for the INCREDIBLY BADLY WORDED puzzle.

  • @marvinkitfox3386

    @marvinkitfox3386

    3 жыл бұрын

    @@kamild685 "The task is how far can u go not the maximum distance you can cover." BULLSHIT! That is *****************EXACTLY***************** what the question asks for. Look at 0:37 QUOTE "what is the maximum distance you can go" The question is asked in such fuzzy language, that the interpretation is up to the reader.

  • @emem2756
    @emem27563 жыл бұрын

    That's cool solution to optimize but only in one dimension. Just imagine time needed to transfer the fuel every few km...

  • @alexortiz9777
    @alexortiz97773 жыл бұрын

    I definitely fell into the first optimization trap when I was first figuring it out. Misleading power of two!

  • @GSS_94
    @GSS_943 жыл бұрын

    This guy: *let's use optimization* My Indian brain: *use one leg to push the other bike* 1st 100 km 8 bikes rem 2nd 100 4bikes remaining 3rd 100 2 bikes rem 4th 100 1 bike remaining 5th 100 run out of fuel. 500 km travelled. This is called DJ or Desi Jugaad 🤣

  • @ashwaniagrawal3570

    @ashwaniagrawal3570

    2 жыл бұрын

    Interviewer after listening to this approach : salary kitna loge??

  • @GSS_94

    @GSS_94

    2 жыл бұрын

    @@ashwaniagrawal3570 😂

  • @Ihaveseenthewhey
    @Ihaveseenthewhey3 жыл бұрын

    The phrasing of the question is wrong. As it is, I can transfer all the fuel to an external container carry it on one bike, refuel as necessary and go 1600km…

  • @vispafm

    @vispafm

    3 жыл бұрын

    No container, they had to take a rope and go together. It would be real- good for phrasing - and close to 1600 km, now it's a question about friction force. My guess it's 1598 )

  • @bwillan

    @bwillan

    3 жыл бұрын

    That was also presume that the additional weight of the extra fuel didn't affect the fuel economy of the motorbike to begin with.

  • @saisreethamtheegela2081

    @saisreethamtheegela2081

    3 жыл бұрын

    Found someone who had a similar idea😅

  • @Aditya.7_7
    @Aditya.7_73 жыл бұрын

    Really one of the most useful channels to learn how to use different approaches to solutions . Just wished 3 puzzles could be uploaded per month .

  • @brpawankumariyengar4227
    @brpawankumariyengar42273 жыл бұрын

    Awesome video …. I made the similar mistake and got 300 KM …. Thank you very much for the better approach to the solution.

  • @supratikb1998
    @supratikb19983 жыл бұрын

    Most underrated channel in you tube

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    I just give my best for you guys :)

  • @achalbhoir1359

    @achalbhoir1359

    3 жыл бұрын

    @@LOGICALLYYOURS Please correct me if I'm wrong 16 bikes 100 kms After 10 km (0+10 km=10 km traveled) 16 bikes have 90 kms remaining remove 1 bike and refuel remaining 15 90/15= 6 km and 90+6=96 15 bikes remaining with 96 km each after 12 km (10+12=22km traveled) All 15 bikes have 84 km remaining Remove 1 bike & refuel remaining 14 84/14= 6 km and 84+6=90 14 bikes remaining with 90 km each Again after 12 km (22+12=34 km) All 14 bikes have 78 km left Remove 1 bike and refuel others = 78+6 = 84 km remain in 13 bikes Again after 12 km (34+12=46) 13 bikes have 72 km left Remove 1 bike and refuel remaining 12 72+6=78 in 12 bikes After 1 km (46+1=47) 12 bikes have 77 km left Remove 1 bike and refuel 11 77+7=84 11 bikes with 84 km each After 4 km 47+4= 51 11 bikes with 80 km left Remove 1 refuel 10 = 88 km 10 bikes After 7 km (51+7= 58) 10 bikes with 81 km left Remove 1 bike and refuel 9 with 9 ltr = 81+9=90 km 9 bikes 90 ltr After 2 km (58+2=60) 9 bikes with 88 km left Remove 1 bike & refuel remaining 8 With 11 ltr = 88+11=99 8 bikes 99 ltr After 15 km (60+15=75) 8 bikes with 84 km left Remove 1 & refuel other 7 = 84+12= 96 km 7 bikes 96 km left After 12 km (75+12=87 km) 7 bikes with 84 km left Remove 1 & refuel remaining 6 =84+14= 98 km 6 bikes with 98 km left After 18 km (87+18=105 km) 6 bikes with 80 km left Remove 1 bike and refuel remaining 5 = 80+16= 96 km 5 bikes with 96 km left After 16 km (105+16=121 km) 5 bikes with 80 km left Remove 1 bike and refuel remaining 4 = 80+20= 100 4 bikes with 100 km left After 25 km (121+25= 146 km) 4 bikes with 75 km left Remove 1 bike and refuel remaining 3 75 +25= 100 km left 3 bikes with 100 km left After 50 km (146+50= 196 km) 3 bikes with 50 km left Remove 1 bike and refuel remaining 2 = 50+50= 100 km left 2 bikes with 100 km left After 50 km (196+50= 246 km) 2 bikes with 50 km left Remove 1 bike and refuel remaining 1 50+50= 100 1 bike with 100 km left After 100 km (246+100= 346 km) 1 bike with 0 km left Total 346 possible

  • @samarthgiri7158

    @samarthgiri7158

    3 жыл бұрын

    @@achalbhoir1359 You got a little mistake in there. When 3 bikes with 50 km are left then a single bike with 50 km cannot completely fill the tanks of two bikes. It will go like this : When you're left with 3 bikes with 100 km,Total Distance:146 km After 33.3 km (146+33.3=179.3) 3 bikes with 66.6 km left Remove 1 bike and refuel remaining two = 66.6+33.3= 100 km left 2 bikes with 100 km left And you will finally get the answer : 329.3 km NIce try though.

  • @achalbhoir1359

    @achalbhoir1359

    3 жыл бұрын

    @@samarthgiri7158 thanks bro🔥🙏😀

  • @WgdVids
    @WgdVids3 жыл бұрын

    If anyone has played Kerbal Space Program and done asparagus staging, this is essentially the same principal. The exceptions being that the fuel transfer is constant as distance is covered, and that you have to drop 2 vehicles at a time rather than one to keep your mass centered.

  • @illiacvie

    @illiacvie

    3 жыл бұрын

    exactly what in my mind

  • @Stewpacc

    @Stewpacc

    3 жыл бұрын

    What a strange place to find a RuneScape legend

  • @wango6603
    @wango66033 жыл бұрын

    The explanation is really good. Keep up the quality content

  • @himanshusaini6014
    @himanshusaini60143 жыл бұрын

    What's up logical people this is Ammar😀😂 I always recite this line when I opened the VDO 😅 Now it's my habit 🤣

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    😄😄thanks bro :)

  • @himanshusaini6014

    @himanshusaini6014

    3 жыл бұрын

    I'm eagerly waiting for Ur reply too good content didn't find anywhere keep working 🙏🏻❤️❤️

  • @aniketnikam4977

    @aniketnikam4977

    3 жыл бұрын

    @@LOGICALLYYOURS I got better answer Follow the same logic but half of the bike goes to opposite side to other half bike then we get maximum distance 543.58 km

  • @darklightwhatever6970

    @darklightwhatever6970

    3 жыл бұрын

    @@aniketnikam4977 wouldnt work...asked maximum distance you can go..not the others...answer is 1600km...nowhere did it say max distance from starting point.

  • @d.SAiNi.

    @d.SAiNi.

    3 жыл бұрын

    @@darklightwhatever6970 But you always can tow. 😁😋😋

  • @maxjahns9063
    @maxjahns90633 жыл бұрын

    You have to put the possibility of transfering fuel in the presumtions... otherwise the answer is 100km.

  • @craftycraftybird6932

    @craftycraftybird6932

    3 жыл бұрын

    It did infer that when it said not all the bikes had to reach the maximum point

  • @SmallSpoonBrigade

    @SmallSpoonBrigade

    3 жыл бұрын

    @@craftycraftybird6932 no, he is right, it's also not stated that you've got a siphoning hose or other equipment.

  • @stephanreiken9912

    @stephanreiken9912

    3 жыл бұрын

    Dump half the drivers from the get go and have the other half tow bikes. Lose some fuel efficiency, probably around 10% based on google, but now the distance of one bike is 180 not 100. If you can infer being able to transfer fuel, surely having the towing equipment isn't out of the question either.

  • @zecrets
    @zecrets3 жыл бұрын

    Always fun to crack down your puzzles brother ! Although I manage a correct approach, but incorrect answer 😁

  • @pemalai1895
    @pemalai189510 ай бұрын

    Strap all of the bikes to one in pairs(like a cart) for balance and have a trio among them if the total number of bikes is even until the last 2. Strap this to the one you’re riding. Then, strap the second last one to the side of the first one(or the back if you’re skilled). Use motorbike parts if needed as the straps. This approach gets 1600 km.

  • @ankanathharsha5017
    @ankanathharsha50173 жыл бұрын

    MINDBLOWN! EXCEPTIONAL! PROBLEM SOLVING @ THE PRIME TIME HERE IN THIS CHANEL KEEP GOIN!!>>>>

  • @CultOfJ
    @CultOfJ3 жыл бұрын

    Always love your content❤️

  • @anielloizzo1742
    @anielloizzo17423 жыл бұрын

    I would (before listening to the solution) say 338.0729km. It is given by the sum from 16 to 1 of 100/n where n is the number of bikes riding simultaneously. The basic idea behind the formula is that the bike start all togheter and then, after 100/n km 1 of the bikes stops and share its fuel to the others bikes until 1 only bike remains.

  • @OrenLikes

    @OrenLikes

    3 жыл бұрын

    You are more accurate! partial harmonic series, H16*100km = ~338.073km.

  • @adamae.7246

    @adamae.7246

    3 жыл бұрын

    Yes, I got the same result! I don't know why the answer in the video is not accurate.

  • @ikhlaqmuneer7901
    @ikhlaqmuneer79013 жыл бұрын

    U never fail to amaze us with ur puzzles.

  • @RishabhSharma10225
    @RishabhSharma102253 жыл бұрын

    That was a great video. I really liked it! Keep up the hard work and you'll be the biggest channel of your type on KZread

  • @krishnamoorthynatarajan6903
    @krishnamoorthynatarajan69033 жыл бұрын

    nearly got there. 100 / 16 .. but I thought the stop will be always 6.25.. but it should be 100 / 15 , 100 / 14 so on.. good one !

  • @abs1426
    @abs14263 жыл бұрын

    Great puzzle! But, believe me each and every Stop/transfer will come with some losses like vaporization, spillage, stoping/starting =% fuel usage which is generally more than rated! Firstly i didn't get the solution, because i thought one bike on single run can go upto max 100km😉😉😉! And that my first answer. Btw, this was good one!👍🏽

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    😀 thanks buddy

  • @palashagrawal2343

    @palashagrawal2343

    3 жыл бұрын

    we always do the problems ideally even in mechanics,electrical,chemical,etc.

  • @aryanshrajsaxena6961
    @aryanshrajsaxena69612 ай бұрын

    Solved this absolutely stunning but easy problem

  • @Comedy_baap
    @Comedy_baap3 жыл бұрын

    The most awaited video , thanks sir for uploading this video and I have already watch your all videos please upload more videos as early as possible. 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    Yes buddy.. I'll make the videos frequently

  • @n-steam
    @n-steam3 жыл бұрын

    As a mathematical problem, this solution does work. In practicality, time is another resource that you would need to consider. Imagine a similar scenario but with boats travelling upstream.

  • @d.SAiNi.
    @d.SAiNi.3 жыл бұрын

    If we can ignore other factors like losing some fuel by vaporization and spilling while transferring to other bikes and burning more fuel by stopping/starting on small intervals. Then you simply can tow other bikes with one bike and cover total distance of 1600kms (ignoring other factors like balancing, burning more fuel by towing other bikes on neutral, etc). 😁😋😋 Btw nice puzzle and video 👍🏻👍🏻

  • @BrainPermaDeD

    @BrainPermaDeD

    3 жыл бұрын

    Hehe. I also thought the same.

  • @creativetweakers3089
    @creativetweakers30893 жыл бұрын

    Thank you 😊

  • @TomTravelling
    @TomTravelling3 жыл бұрын

    Logically the maximum total distance you can cover is 1600 km - the simplest way is for them all to start out together, perhaps on different roads.

  • @TomTravelling

    @TomTravelling

    3 жыл бұрын

    Or if on 1 bike, the bike circles back to the starting point when empty to refuel. Of course, you can go thru your calcs if you want to find the location furthest from the starting point a rider can get to. But that was not the problem statement.

  • @richardklepper3299

    @richardklepper3299

    3 жыл бұрын

    @@TomTravelling just strap all the other 15 bikes onto one, and switch to another bike every 100km

  • @gorg212

    @gorg212

    3 жыл бұрын

    @@richardklepper3299 but then one bike has to carry all the other 15 bikes so it will take lot of power on them too, but not considering that then its correct

  • @richardklepper3299

    @richardklepper3299

    3 жыл бұрын

    @@gorg212 well, varying weight of the riders, wind drag, road conditions etc were all ignored as well. but it's a great thought challenge.

  • @alquinn8576

    @alquinn8576

    3 жыл бұрын

    @@TomTravelling the problem statement was not well stated tbh...i didn't understand who the "you" was in the set-up

  • @only_comments
    @only_comments2 жыл бұрын

    Actually it can be 1600 km as you have asked maximum distance.. if it is maximum displacement, then it is 337 as you mentioned.😉 As many people in the comment section are finding out loopholes and giving different solutions, I tried myself too😉

  • @manusarda
    @manusarda3 жыл бұрын

    Legends know that this is advanced version of camel and 3000 apples 👍 Because I have done that before, I was able to solve it easily. 😎

  • @gmchess7367
    @gmchess73673 жыл бұрын

    I like this problem too much 🤩🤩👍

  • @devanshzaveri2852
    @devanshzaveri28523 жыл бұрын

    U r besttt❣️❣️

  • @sillypuppy5940
    @sillypuppy59403 жыл бұрын

    The riddle does not preclude leaving the bike behind and walking, which means one could cover significantly more ground.

  • @willythemailboy2

    @willythemailboy2

    5 ай бұрын

    I was thinking of coasting downhill

  • @sorsocksfake
    @sorsocksfake Жыл бұрын

    Every mile a motorcycle needs to drive, is fuel used out of the 1600 total fuel(km). So we want to drive bikes as little as possible. This is done by dropping out a bike as soon as its remaining fuel is just enough to top everyone else off. At the start, that's after 100/16=6.25km. The remaining 15/16th of his fuel is divided among the other 15 bikes, which ride on. After 100/15 = 6.666 km the second bike divides its remaining 14/15th of fuel among the oter 14, and so forth. This gets 100/16+100/15+ ... +100/2+100/1= just over 338 km.

  • @S.G.Wallner
    @S.G.Wallner Жыл бұрын

    Definitely jumped to the unoptimized solution and was too lazy to figure out the optimized solution.

  • @ujjwallvsdkdm5895
    @ujjwallvsdkdm58953 жыл бұрын

    *One of the best channel*

  • @stephanreiken9912
    @stephanreiken99123 жыл бұрын

    I haven't figured out that milestone part. It ignores the inefficiencies from step one. First, dump half of the drivers and have the other half of the motorbikes tow the empty ones. There is a mild loss of fuel efficacy from extra weight but you did dump the other riders so as to minimize the loss.

  • @chip_klutzy6384
    @chip_klutzy63843 жыл бұрын

    Believe me or not I figure it out myself after several hours working on it

  • @kush5749

    @kush5749

    3 жыл бұрын

    Okay. Not believing you🤣

  • @rajatpathak6524

    @rajatpathak6524

    3 жыл бұрын

    @Ethan Goldberger 😂😂 absolutely

  • @dhruval3129
    @dhruval31293 жыл бұрын

    I solved it. YAYYYYY Bro I love your videos. Please upload as more as videos if possible. But I got 338.07 kms

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    Due to these uncertain conditions i was a bit occupied... but I'll increase the frequency to make it atleast one video per week. You seem to be perfectly on track, might be a little fractional deviation.

  • @dhruval3129

    @dhruval3129

    3 жыл бұрын

    @@LOGICALLYYOURS ok no problem bro. Btw your ENGLISH is awsm.

  • @brgibbons

    @brgibbons

    3 жыл бұрын

    @@LOGICALLYYOURS 100/8 = 12.5, not 12.25

  • @voetbal1231

    @voetbal1231

    3 жыл бұрын

    @@LOGICALLYYOURS I got 338.07 as well. Not just a fractional deviation. The difference of .25 is too much for just a fractional deviation. The sum in your video is wrong.

  • @jjbpenguin

    @jjbpenguin

    3 жыл бұрын

    @@voetbal1231 they made a mistake at 100/8 calling it 12.25 when it is 12.5

  • @briandearing6238
    @briandearing62383 жыл бұрын

    Thanks for the fun problem. Slight note: your calculation at @5:18 of 100/8 = 12.25 should be 12.50, leaving an error in the total. The summation of 100/n for n=1 through n=16 is 338.073 km.

  • @kartikkosurkar4907
    @kartikkosurkar49072 жыл бұрын

    Very nice I am amazed by your solution but want to know that do you solve them by yourself And where do you take such riddles from? Please answer me

  • @HenryCabotHenhouse3
    @HenryCabotHenhouse37 ай бұрын

    And here I thought the optimal solution yielded 1600 km traveled. The first fifteen bikes hold on to each other and the sixteenth tows them 100 km. He drops off and the second bike tows the next 100 km. Repeat for all 16 bikes and you (the sixteenth) have gone 1600 km. Well, probably closer to 1550 because of extra fuel usage for towing, but you get the point. Anyway, that is the actual optimum solution - don't run motors when you don't have to. "The best part is no part" - Elon Musk.

  • @ullassasvihallimath9161
    @ullassasvihallimath91613 жыл бұрын

    Sir u should make a video on ur personal life , how u started the you tube channel And plz share ur experience with us on this journey

  • @megabyte512
    @megabyte5123 жыл бұрын

    The maximum distance that can be covered is 1600 km. I had a tool set and took all the tanks off the other motorcycles (While they were sleeping). Strapped them to mine and refilled every 100 km. Total traveled 1600km

  • @hugh.g.rection5906

    @hugh.g.rection5906

    3 жыл бұрын

    i sold the bikes for a round the world plane ticket. he said i had to use the bikes not ride them.

  • @tamirerez2547
    @tamirerez25473 жыл бұрын

    Thank you Ammar for this beautiful problem, and, as always, great clear explanation. Just don't understand why I got the anwer of 338.073 km and not 337.818 km...

  • @crazy4hitman755

    @crazy4hitman755

    3 жыл бұрын

    He made a small mistake 100/8=12,5, but in his solution 100/8=12,25

  • @tamirerez2547

    @tamirerez2547

    3 жыл бұрын

    @@crazy4hitman755 Yes you right. Probably this is the mistake. Forgiven type error. In hebrew we say: Only those who don't do anything, never mistake...

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    I was looking for your comment and I found it :) Yes, I just realized that fractional mistake i made with 100/8. Your answer is perfect.

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    I must take a screenshot of this. Tamir, your words are very precious.

  • @tamirerez2547

    @tamirerez2547

    3 жыл бұрын

    @@LOGICALLYYOURS Great problem with a beautiful logical principle. Love your clear explanation and graphic!! 😃

  • @somyapratapsingh9849
    @somyapratapsingh98493 жыл бұрын

    Amazing 🔥

  • @phoenixarian8513
    @phoenixarian85133 жыл бұрын

    I think this is engineering initiative in spacecrafts. Carrying more fuel would increase its weight and therefore not always lengthens the travel distance. It's like a troop of bikes dropping down empty ones to continue journey.

  • @mpeterll
    @mpeterll3 жыл бұрын

    With all the extra stopping, starting and accelerating after so many stops, not to mention the inefficiency of the fuel transfers and additional nonproductive distance during the transfer stops, you're going to waste more than the 37km you supposedly gain.

  • @juleskain3905
    @juleskain3905 Жыл бұрын

    Maximum distance traveled was not specified as from the starting position, so total is 100o kilometers. Driver one goes 50K turns around and returns for 50K, they then refuel the original bike s and they repeats the 100K loop until all fuel is gone. Ten loops is 1000K on Ye Ole Odometer...

  • @yeshwanthln7621
    @yeshwanthln76213 жыл бұрын

    I solved it correctly....

  • @deplorableveteran6860
    @deplorableveteran68603 жыл бұрын

    Or... a trailer can be made from parts of some of the other bikes to haul all the tanks full of gas and be dragged by , and to feed 1 bike , trailer dropped when you are down to 1 tank of full... distance 1600km - (the drag effect of the trailer on full consumption)

  • @azalcosta427
    @azalcosta4273 жыл бұрын

    I figured it out but I thought that it is making a pattern so it can be added by some other way of progression concept but I had to add them all with calculator. If these values can be added by some progression method then please let me know sir. I appreciate your work Thanks Love this channel

  • @Eternalwarpuppy
    @Eternalwarpuppy6 ай бұрын

    The fact that we had a fuel siphon device that could perfectly transfer all of the fuel from one bike to another would have been very useful information to know. If I was supposed to assume I had a device like that, what is to stop me from assuming I have a passport and an international plane ticket? I was trying to figure out this puzzle by having bikes tow each other but then I didn't know how much more fuel it would take to tow and how many bikes one bike could tow.

  • @alkabindal4793
    @alkabindal47933 жыл бұрын

    Got it correct in the second attempt after Seeing the wrong approach 😂🤣, BTW good question 👍👍

  • @chinmayaprakash
    @chinmayaprakash3 жыл бұрын

    You might have optimised the maximum possible distance that one of the riders can cover theoretically, but practically, riding for 50 kms before taking a break to cannibalize petrol of one of the fellow riders is not only simpler, but a consistently predictable riding break after every 50 kms helps avoid unnecessary confusion and chaos. As an experienced group rider, I can attest to the fact that as a group of 16 riders with a target distance of 300-350 kms for the final rider, 15 riding breaks is definitely not optimal compared to 4. I can easily coordinate and organise a group of 16 riders by giving them a simple directive: ride in groups of two, and after 50 kms, those of you who are riding ahead, take a 15 minutes break to prepare the next phase of the ride, during which time refill your tank from your ride partner who is staying behind, and pair up with your assigned ride partner for the next 50 kms. Can you imagine the logistic nightmare of coordinating a group of riders who will become increasingly tired and have to stop at non-uniform interval of distances, most of which are not rounded figures, but have up to 3 decimal places, which does not show up on odometer/ trip meter information display panel of any bike?! And I have not yet broached the topic of reduced fuel efficiency when you cover 338 kms with 15 breaks when compared to covering 300 kms with only 4 riding breaks. And don't even get me started on how you plan to distribute fuel in precisely equal amounts to 15 bikes in the first instance, a calculation which is not going to get easier with subsequent riding breaks, especially with some difficult prime numbers waiting in line to test your calculation skills. So you tell me: which alternative is more optimised?!😝

  • @alexandros93
    @alexandros933 жыл бұрын

    I think the solution is 338,072 km but anyways great problem.

  • @OrenLikes

    @OrenLikes

    3 жыл бұрын

    partial harmonic series, H16*100km = ~338.073km!

  • @SlidellRobotics
    @SlidellRobotics3 жыл бұрын

    Good one, but milestone 9 will be 12.5, not 12.25km from milestone 8. That gets you another 250m. You also left another 4.899m+ out by rounding everything down to the integer meter.

  • @sathakmusthafahm
    @sathakmusthafahm3 жыл бұрын

    I calculated 500km by just towing the every other bike for 100km by the rider. So on the first 100km 8 bikes fuel will be empty and on the second 100km 4 bikes fuel will be empty and on the third 100km 2 bikes fuel will be empty and on the 4th 100km 1 bike fuel will be empty and the remaining bike will cover another 100 km which adds up to 500 km. This is much more optimal as long as there was no clause that the ignition of all bikes has to be turned on at start

  • @realtamal
    @realtamal3 жыл бұрын

    Just add each bike with another with rope, while using one, keep other bikes neutral, BOOM friends you can go 1600 KM and no one will be left behind, true friendship will be created..... Trust me😁

  • @d.SAiNi.

    @d.SAiNi.

    3 жыл бұрын

    Definitely (by ignoring other factors). 👍🏻👍🏻

  • @tinobemotorsport5143

    @tinobemotorsport5143

    3 жыл бұрын

    Had it the same way!!

  • @azizimohdnoor3604

    @azizimohdnoor3604

    3 жыл бұрын

    No, the burden to pull all bikes (15 bikes for the most front bike) will consume more fuel. It won't reach 1600 km but still greater than 300 km for sure

  • @d.SAiNi.

    @d.SAiNi.

    3 жыл бұрын

    @@azizimohdnoor3604 Yes, but If we are ignoring factors like losing some fuel by vaporization and spilling while transferring to other bikes and burning more fuel by stopping/starting on small intervals etc... Then we also can ignore some factors like balancing, burning more fuel by towing 15 bikes on neutral, etc.. and go for 1600kms. 😁😋😋

  • @sandeepa4116
    @sandeepa41163 жыл бұрын

    Nice puzzle, but what if all the 16 bikes are in line and from rider 2 to rider 16, each rider places his foot on the bike in front of him. Then the last bike which is 16th bike is turned on and toes the next bike keeping the rest 15 bikes' ignition off. After 100km, the 15th bike is turned on and so on. This way you dont have to transfer the fuel everytime and also you can travel 16×100=1600 km 😎😎😎

  • @shreyasj6437

    @shreyasj6437

    3 жыл бұрын

    That's what I thought. But bit difficult to balance the bike i feel

  • @sandeepa4116

    @sandeepa4116

    3 жыл бұрын

    @@shreyasj6437 when they dont have money to buy fuel and when they are ready to transfer fuel from one bike to other with lot of calculations, I think they can take a bit of pain to travel long distance this way🤣🤣 Just kidding 😂

  • @shreyasj6437

    @shreyasj6437

    3 жыл бұрын

    @@sandeepa4116 Haha Yeah

  • @d.SAiNi.

    @d.SAiNi.

    3 жыл бұрын

    If balancing can be an issue then what about losing some fuel by vaporization and spilling while transferring to other bikes and burning more fuel by stopping/starting on small intervals. So you may ignore balance issue (you may tow with rope also) or you must have acknowledged above factors for given solution.

  • @d.SAiNi.

    @d.SAiNi.

    3 жыл бұрын

    So, if you are ignoring other factors, you can tow other bikes with one bike like a train. Towing like this will definitely not cover total distance of 1600kms but again we're ignoring other factors here also like burning more fuel by towing other bikes on neutral, balancing etc. So the answer will be 1600kms. 😁😋😋

  • @maruthasalamoorthiviswanat153
    @maruthasalamoorthiviswanat1533 жыл бұрын

    Nice logic

  • @stevefrandsen7897
    @stevefrandsen78973 жыл бұрын

    The Strategy mentions "A milestone is reached AS SOON AS the doner bike has enough fuel which can be transferred to the other bike to fully load its tank". That could happen after 1 inch of travel, 2 feet of travel, 8 yards, 3 kilometers, 8 miles, 17 or 44 miles. Needed is a clause such as "while fully emptying its own tank". The formula clears this up some calculating this as 50. Working with 0s and 1s for many years I'm very sticky about good definitions of problems since an unclear one can cause lots of issues and rewrites.

  • @accelerator5524

    @accelerator5524

    3 жыл бұрын

    even though i dont work with 0 and 1, i also said that you could refill ever km.

  • @freebeerecords

    @freebeerecords

    3 жыл бұрын

    You could do the feeding continuously and the answer would be the same. Imagine the bikes somehow connected with fuel hoses. One bike feeds all the others to keep them topped up, as well as supplying its own engine, then drops out when it gets empty. With 2 bikes connected this way, one bike basically supplies both engines until it goes empty at 50km then drops out while the remaining bike has been getting topped up so still has a full tank. It’s functionally the same as his solution but with continuous transferring.

  • @brianwade4179

    @brianwade4179

    Жыл бұрын

    I too noticed that. I like this definition for "milestone": for N bikes riding together, a milestone is reached when the N-1 recipient bikes have enough empty space in their tanks to hold the fuel remaining in the 1 donor bike. This drives home the essential nature of a milestone: it is a point at which we can shed a bike without shedding any of the fuel remaining in the bike. Shedding a bike whenever possible minimizes the cohort's total fuel consumption per kilometer.

  • @jirtarWorld
    @jirtarWorld3 жыл бұрын

    The optimal are 16 X 100 km. You go get a screw driver, unscrew the other gaz tank, find a chariot, put the gaz tanks on it, you attach the chariot on the "first" bike, and go 1600km! Another thing to take in account is the speed at which you "travel", more fast you go, less distance you travel! So, saying a tank has a range of "100km" is wrong/false/imcomplete! (or at least, you need to specified a speed, which will be mandatory! 100km range.) So if the speed is, i don't know, 100km/h (in the video is 100km/h?) (which is not the "best" speed

  • @jirtarWorld

    @jirtarWorld

    3 жыл бұрын

    @@literallylegendary6594 And it is why (i will quote myself | maybe you need to learn to read) i said : «You go get a screw driver» and not You use the screw driver given! (or providen)

  • @mrgyani
    @mrgyani3 жыл бұрын

    Ans: 338.0728993 If R is the range, and x is the number of bikes, then the answer is R/x + R/x-1 + R/x-2.. + R/ 1 Glad to get this one right, totally missed the other similar bike problem - if 3 ppl, 2 on bike and 1 walking - what is the most optimized solution in which they can travel to a destination. I couldn't even think beyond - 2 people on bike and 1 walking all the distance, no exchange 😂..

  • @jesan733
    @jesan73310 ай бұрын

    I found that it was the harmonic series from 1-16 and looked up the value for this partial sum: ~3.38073. But I see that others have pointed out the error in the vid giving a slightly different answer.

  • @decoder6878
    @decoder68783 жыл бұрын

    Very nice

  • @KolyanKolyanitch
    @KolyanKolyanitch3 жыл бұрын

    Make train from 16 bikes with only one bike pulling train at a time. Ditch bikes that ran out of fuel.

  • @NTIRUPATHIJAYAPARASURAM
    @NTIRUPATHIJAYAPARASURAM3 жыл бұрын

    Sir please explain the concepts about lateral thing, out side the box, optimization. And also explain When we have to use those concepts

  • @anthorin
    @anthorin3 жыл бұрын

    Very good. Slight error though as 8 bikes is 12.5 km not 12.25

  • @joelsmith3473
    @joelsmith34733 жыл бұрын

    If you split the bikes into two teams traveling in opposite directions, they can each travel a total of 271¹¹⁄₁₄km and end up a total distance of 543⁴⁄₇km away from each other.

  • @winnewFirst

    @winnewFirst

    2 жыл бұрын

    That's fantastic thinking. That should be the answer.

  • @ManojKumar-qt4mg
    @ManojKumar-qt4mg3 жыл бұрын

    My initial approach was one guy towing the rest 15 guys until his tank empties and one among the rwst 15 takes his turn totalling to 1600kms

  • @hemanthsundarapalli6652

    @hemanthsundarapalli6652

    3 жыл бұрын

    🤪

  • @oenrn

    @oenrn

    3 жыл бұрын

    It would take more fuel to carry 16 bikes a certain distance than just one. Towing is not an energy-free process.

  • @mchoi815

    @mchoi815

    3 жыл бұрын

    @@oenrn If you assume the fuel required is proportional to the weight, you would still get the same result: (1/16 + 1/15 + ... + 1)*100. You also improve on the time complexity (no fuel transfer) and context switching overhead (stopping and starting will reduce fuel efficiency) with zero cost for distance. Intuitively, it makes sense that the distance comes out the same, because when rider n transfers 1/(16-n) fuel, it's as if rider n is reimbursing the fuel per rider for the distance just covered.

  • @amanverma-rk2mp
    @amanverma-rk2mp3 жыл бұрын

    Love your videos ❣️❣️

  • @palashagrawal2343
    @palashagrawal23433 жыл бұрын

    i solved for 2 and then 3 and then got the the approach for 16 but not the ans as i am bit lazy🤫😂

  • @NonRandomUser
    @NonRandomUser3 жыл бұрын

    Yes, it is optimal to sacrifice 15 riders so the remaining one can be stranded on the other side, unable to make the entire 300+ km trek back on a 100km/tank.

  • @abcdefgxyz937
    @abcdefgxyz9372 жыл бұрын

    Easy peasy 😄

  • @aritrasarkar9643
    @aritrasarkar96433 жыл бұрын

    Man. U are genius.... Are u from iit or any prestigious college?

  • @LOGICALLYYOURS

    @LOGICALLYYOURS

    3 жыл бұрын

    Thanks Aritra for the appreciation. Glad to see your comment.

  • @aritrasarkar9643

    @aritrasarkar9643

    3 жыл бұрын

    @@LOGICALLYYOURS my pleasure

  • @CapAnson12345
    @CapAnson123453 жыл бұрын

    Badly worded problem, but neat solution.

  • @porth5165
    @porth51653 жыл бұрын

    travel until the remaining fuel in one motorcycle can fill up the other motorcycles to 100%, discard empty motorcycle, rinse and repeat = (100km/16)+(100km/15)+(100km/14)+....+(100km/2)+(100km/1)= 338km

  • @OrenLikes

    @OrenLikes

    3 жыл бұрын

    partial harmonic series, H16*100km = ~338.073km!

  • @samsheriya
    @samsheriya3 жыл бұрын

    I would have to walk those additional 37 odd KMs. Hope to use brain more than muscle next time.

  • @ericsaucier3816
    @ericsaucier38163 жыл бұрын

    I ended up with 338,072899 km. That's if if you take into account all de imals and you don't round anything.

  • @OrenLikes

    @OrenLikes

    3 жыл бұрын

    You are more accurate! partial harmonic series, H16*100km = ~338.073km.

  • @chadgmiller

    @chadgmiller

    3 жыл бұрын

    There is a mistake in his milestone #9. 100/8 = 12.5 not 12.25. You are correct.

  • @Saiiiiiiiiiiiiiiiigadu
    @Saiiiiiiiiiiiiiiiigadu3 жыл бұрын

    🎉👌👌

  • @spencerphilippinedream3706
    @spencerphilippinedream37063 жыл бұрын

    i wish the rules had been covered a little better. while you were busy siphoning gas on the side of the road 120 times, i was removing 15 fuel tanks and bringing them 1600km with me on my motorbike. or traveled to my friends house 50km away and back 16 times by riding a different bike each day. if this seems unrealistic, i think leaving 15 people stranded is unrealistic.

  • @whiteghost1905
    @whiteghost19052 жыл бұрын

    Excellent solution without doubt, but often most of your riddles seems reverse solved. The analogy of bike with fuel is ridiculous, because, if I were to beat someones record by a mile I would rather push the bike for the extra mile. Without time constraint, this solution may not make any sense. Further, consider the spillage every time you have to refuel. Is the road flat?. Then there is "maximum distance that YOU can go", is there a space for ME to sit behind the rider. If the bike has reasonable torque then daisy chain them would be the best solution.

  • @whiteghost1905
    @whiteghost19052 жыл бұрын

    Oh I highly doubt that, me on the bike with the rider, the bike would only cover 10 km before it breaks down.

  • @jnlbermundo
    @jnlbermundo3 жыл бұрын

    My answer is 1,600km. One motor bike should pull all 15 bikes from behind using a rope or what. When the first bike emptied is fuel, the second bike should do the same to pull remaining 14 bikes. Then the third one pulls other 13 bikes, and so on... Until only one left and finish the ride.

  • @MrFruxion
    @MrFruxion3 жыл бұрын

    The theorical most optimal distance is 338,07. Hope now my message will not be removed... sum (100/x), x from 16 to 1.

  • @pobi007
    @pobi0073 жыл бұрын

    Another solution, 1600 km. One bike will move towards any direction and will return to same starting point, so travel by 1 vehicle is 100 km and can repeat 16 times. So, total distance travelled 1600 km. Just thinking out of box as this is a riddle. 😁🙏🙏

  • @fastestslowest1864

    @fastestslowest1864

    2 жыл бұрын

    There is a difference between distance and displacement. Your displacement is 0,so max distance covered 0km.

Келесі