Interview Riddle - 16 Bikes || Logic and Optimization Puzzle

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ค. 2021
  • 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

ความคิดเห็น • 600

  • @piyushborse
    @piyushborse 3 ปีที่แล้ว +88

    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 ปีที่แล้ว +39

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

    • @TheJschulter
      @TheJschulter 3 ปีที่แล้ว +5

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

    • @yodan00b
      @yodan00b 3 ปีที่แล้ว +8

      @@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
    @pintokitkat 3 ปีที่แล้ว +47

    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 ปีที่แล้ว +2

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

    • @pintokitkat
      @pintokitkat 3 ปีที่แล้ว +14

      @@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 ปีที่แล้ว +7

      @@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 ปีที่แล้ว +1

      Yeah not displacement

  • @Jeffsd17
    @Jeffsd17 3 ปีที่แล้ว +72

    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 ปีที่แล้ว +6

      @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 ปีที่แล้ว +3

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

    • @dividebyzero1000
      @dividebyzero1000 3 ปีที่แล้ว +1

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

    • @Ni999
      @Ni999 3 ปีที่แล้ว +5

      @@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
    @namdoolb 3 ปีที่แล้ว +29

    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 ปีที่แล้ว +1

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

    • @namdoolb
      @namdoolb 3 ปีที่แล้ว +1

      I think you miss the point of my comment

    • @ejrupp9555
      @ejrupp9555 2 ปีที่แล้ว +2

      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
    @deepmayekar140 3 ปีที่แล้ว +128

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

    • @johnstygall860
      @johnstygall860 3 ปีที่แล้ว +2

      My thinking exactly..much simpler solution

    • @happygoyal594
      @happygoyal594 3 ปีที่แล้ว +4

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

    • @hrishiharshsengar9499
      @hrishiharshsengar9499 3 ปีที่แล้ว +9

      @@happygoyal594 displacement*

    • @harishmr5426
      @harishmr5426 3 ปีที่แล้ว +11

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

    • @happygoyal594
      @happygoyal594 3 ปีที่แล้ว

      @@harishmr5426 🔥🔥🔥🔥😂😂

  • @JoaoManuelCanelas
    @JoaoManuelCanelas 3 ปีที่แล้ว +11

    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

  • @roger_isaksson
    @roger_isaksson 3 ปีที่แล้ว +28

    My brain assumed the drivers shoving each other in the back, locomotive/train style. Once the last bike runs out of fuel it drops off and the next last bike starts it’s engine.

    • @satyaschannel4391
      @satyaschannel4391 2 ปีที่แล้ว

      also I got that idea

    • @michael_cl
      @michael_cl ปีที่แล้ว

      Good idea if assuming a flat road 1 bike can tow 15 bikes ,then the next bike can tow 14 and so on..... Much better solution 😆

  • @IanDangerfield
    @IanDangerfield 3 ปีที่แล้ว +29

    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 2 ปีที่แล้ว

      If possible can u share the code?

    • @ClearAlera
      @ClearAlera 2 ปีที่แล้ว +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 ปีที่แล้ว +3

      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

  • @Anoxonamoon
    @Anoxonamoon 3 ปีที่แล้ว +11

    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 ปีที่แล้ว +2

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

    • @OrenLikes
      @OrenLikes 3 ปีที่แล้ว

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

  • @stevendoyel
    @stevendoyel 3 ปีที่แล้ว +30

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

    • @cvindustries
      @cvindustries 2 ปีที่แล้ว +1

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

  • @lab483
    @lab483 3 ปีที่แล้ว +16

    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.

  • @sergeyg2926
    @sergeyg2926 3 ปีที่แล้ว +34

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

    • @DayTheWeek
      @DayTheWeek 3 ปีที่แล้ว +8

      I ended up with a combined distance of 338.0729 kilometers.

  • @jdmbone003
    @jdmbone003 3 ปีที่แล้ว +15

    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
    @ExaltedwithFail 3 ปีที่แล้ว +7

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

  • @anandgurumurthy6034
    @anandgurumurthy6034 3 ปีที่แล้ว +55

    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 ปีที่แล้ว +9

      @@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 ปีที่แล้ว +5

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

    • @marvinkitfox3386
      @marvinkitfox3386 3 ปีที่แล้ว +1

      @@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.

  • @DJSaez-ll8or
    @DJSaez-ll8or ปีที่แล้ว +4

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

  • @anielloizzo1742
    @anielloizzo1742 3 ปีที่แล้ว +3

    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 ปีที่แล้ว +1

      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.

  • @WgdVids
    @WgdVids 3 ปีที่แล้ว +6

    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 ปีที่แล้ว +1

      What a strange place to find a RuneScape legend

  • @Ihaveseenthewhey
    @Ihaveseenthewhey 3 ปีที่แล้ว +15

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      Found someone who had a similar idea😅

  • @himanshusaini6014
    @himanshusaini6014 3 ปีที่แล้ว +25

    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 ปีที่แล้ว +6

      😄😄thanks bro :)

    • @himanshusaini6014
      @himanshusaini6014 3 ปีที่แล้ว +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 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +1

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

  • @GSS_94
    @GSS_94 3 ปีที่แล้ว +7

    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 ปีที่แล้ว +2

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

    • @GSS_94
      @GSS_94 2 ปีที่แล้ว

      @@ashwaniagrawal3570 😂

  • @alexortiz9777
    @alexortiz9777 3 ปีที่แล้ว +8

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

  • @supratikb1998
    @supratikb1998 3 ปีที่แล้ว +33

    Most underrated channel in you tube

    • @LOGICALLYYOURS
      @LOGICALLYYOURS  3 ปีที่แล้ว +9

      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 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +1

      @@samarthgiri7158 thanks bro🔥🙏😀

  • @brpawankumariyengar4227
    @brpawankumariyengar4227 3 ปีที่แล้ว +3

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

  • @maxjahns9063
    @maxjahns9063 3 ปีที่แล้ว +6

    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
    @zecrets 3 ปีที่แล้ว +3

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

  • @pemalai1895
    @pemalai1895 10 หลายเดือนก่อน +1

    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.

  • @wango6603
    @wango6603 3 ปีที่แล้ว +6

    The explanation is really good. Keep up the quality content

  • @emem2756
    @emem2756 3 ปีที่แล้ว +12

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

  • @Aditya.7_7
    @Aditya.7_7 3 ปีที่แล้ว +1

    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 .

  • @CultOfJ
    @CultOfJ 3 ปีที่แล้ว +3

    Always love your content❤️

  • @krishnamoorthynatarajan6903
    @krishnamoorthynatarajan6903 3 ปีที่แล้ว +4

    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 !

  • @ikhlaqmuneer7901
    @ikhlaqmuneer7901 3 ปีที่แล้ว +1

    U never fail to amaze us with ur puzzles.

  • @chip_klutzy6384
    @chip_klutzy6384 3 ปีที่แล้ว +13

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

    • @kush5749
      @kush5749 3 ปีที่แล้ว +2

      Okay. Not believing you🤣

    • @rajatpathak6524
      @rajatpathak6524 3 ปีที่แล้ว

      @Ethan Goldberger 😂😂 absolutely

  • @sorsocksfake
    @sorsocksfake ปีที่แล้ว +1

    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.

  • @Comedy_baap
    @Comedy_baap 3 ปีที่แล้ว +3

    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 ปีที่แล้ว +1

      Yes buddy.. I'll make the videos frequently

  • @abs1426
    @abs1426 3 ปีที่แล้ว +3

    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.

  • @ankanathharsha5017
    @ankanathharsha5017 3 ปีที่แล้ว

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

  • @devanshzaveri2852
    @devanshzaveri2852 3 ปีที่แล้ว +3

    U r besttt❣️❣️

  • @stephanreiken9912
    @stephanreiken9912 3 ปีที่แล้ว

    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.

  • @TomTravelling
    @TomTravelling 3 ปีที่แล้ว +11

    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 ปีที่แล้ว +2

      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 ปีที่แล้ว +3

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

    • @gorg212
      @gorg212 3 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +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_comments 2 ปีที่แล้ว +1

    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😉

  • @d.SAiNi.
    @d.SAiNi. 3 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      Hehe. I also thought the same.

  • @RishabhSharma10225
    @RishabhSharma10225 3 ปีที่แล้ว

    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 TH-cam

  • @HenryCabotHenhouse3
    @HenryCabotHenhouse3 7 หลายเดือนก่อน +2

    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.

  • @n-steam
    @n-steam 3 ปีที่แล้ว

    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.

  • @briandearing6238
    @briandearing6238 3 ปีที่แล้ว

    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.

  • @ullassasvihallimath9161
    @ullassasvihallimath9161 3 ปีที่แล้ว +1

    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

  • @sillypuppy5940
    @sillypuppy5940 3 ปีที่แล้ว +6

    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

  • @aryanshrajsaxena6961
    @aryanshrajsaxena6961 หลายเดือนก่อน

    Solved this absolutely stunning but easy problem

  • @S.G.Wallner
    @S.G.Wallner ปีที่แล้ว +1

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

  • @dhruval3129
    @dhruval3129 3 ปีที่แล้ว +12

    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 ปีที่แล้ว +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 ปีที่แล้ว +2

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

    • @brgibbons
      @brgibbons 3 ปีที่แล้ว +6

      @@LOGICALLYYOURS 100/8 = 12.5, not 12.25

    • @voetbal1231
      @voetbal1231 3 ปีที่แล้ว +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 ปีที่แล้ว +1

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

  • @gmchess7367
    @gmchess7367 3 ปีที่แล้ว +1

    I like this problem too much 🤩🤩👍

  • @sathakmusthafahm
    @sathakmusthafahm 3 ปีที่แล้ว

    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

  • @creativetweakers3089
    @creativetweakers3089 3 ปีที่แล้ว +2

    Thank you 😊

  • @megabyte512
    @megabyte512 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

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

  • @chinmayaprakash
    @chinmayaprakash 3 ปีที่แล้ว

    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?!😝

  • @juleskain3905
    @juleskain3905 ปีที่แล้ว +1

    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...

  • @mpeterll
    @mpeterll 3 ปีที่แล้ว

    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.

  • @stevefrandsen7897
    @stevefrandsen7897 3 ปีที่แล้ว

    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 2 ปีที่แล้ว

      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.

  • @Eternalwarpuppy
    @Eternalwarpuppy 5 หลายเดือนก่อน +2

    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.

  • @manusarda
    @manusarda 3 ปีที่แล้ว +3

    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. 😎

  • @jirtarWorld
    @jirtarWorld 3 ปีที่แล้ว

    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)

  • @ujjwallvsdkdm5895
    @ujjwallvsdkdm5895 3 ปีที่แล้ว

    *One of the best channel*

  • @ManojKumar-qt4mg
    @ManojKumar-qt4mg 3 ปีที่แล้ว +7

    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.

  • @azalcosta427
    @azalcosta427 3 ปีที่แล้ว

    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

  • @sandeepa4116
    @sandeepa4116 3 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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. 😁😋😋

  • @tamirerez2547
    @tamirerez2547 3 ปีที่แล้ว +4

    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 ปีที่แล้ว +3

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

    • @tamirerez2547
      @tamirerez2547 3 ปีที่แล้ว +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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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!! 😃

  • @deplorableveteran6860
    @deplorableveteran6860 3 ปีที่แล้ว +1

    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)

  • @NTIRUPATHIJAYAPARASURAM
    @NTIRUPATHIJAYAPARASURAM 3 ปีที่แล้ว

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

  • @SlidellRobotics
    @SlidellRobotics 3 ปีที่แล้ว

    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.

  • @phoenixarian8513
    @phoenixarian8513 3 ปีที่แล้ว

    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.

  • @realtamal
    @realtamal 3 ปีที่แล้ว +5

    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 ปีที่แล้ว +2

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

    • @tinobemotorsport5143
      @tinobemotorsport5143 3 ปีที่แล้ว +2

      Had it the same way!!

    • @azizimohdnoor3604
      @azizimohdnoor3604 3 ปีที่แล้ว +2

      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 ปีที่แล้ว +2

      @@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. 😁😋😋

  • @jesan733
    @jesan733 9 หลายเดือนก่อน +1

    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.

  • @somyapratapsingh9849
    @somyapratapsingh9849 3 ปีที่แล้ว

    Amazing 🔥

  • @ericsaucier3816
    @ericsaucier3816 3 ปีที่แล้ว +3

    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.

  • @pobi007
    @pobi007 3 ปีที่แล้ว +4

    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 ปีที่แล้ว +1

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

  • @joelsmith3473
    @joelsmith3473 3 ปีที่แล้ว +2

    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.

  • @NonRandomUser
    @NonRandomUser 3 ปีที่แล้ว +1

    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.

  • @spencerphilippinedream3706
    @spencerphilippinedream3706 3 ปีที่แล้ว

    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.

  • @alkabindal4793
    @alkabindal4793 3 ปีที่แล้ว

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

  • @whiteghost1905
    @whiteghost1905 2 ปีที่แล้ว +1

    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.

  • @gowrishankardakshnamurthy8441
    @gowrishankardakshnamurthy8441 3 ปีที่แล้ว +2

    Well we can use 1 motorcycle to push the other 15 for first 100km and the 2nd can push the rest 14 after 100km and so on and so forth. So the maximum distance you can travel, logically is 1500+ km. This can be done in reality. If done to with 100% accuracy 1600km is possible

    • @phunkydroid
      @phunkydroid 3 ปีที่แล้ว

      This can be done in reality? No, in reality a bike's fuel economy is affected quite severely by pulling 15 other bikes behind it.

    • @tn_onyoutube8436
      @tn_onyoutube8436 2 ปีที่แล้ว

      Nonsense. If you pushed, or more likely pulled, 15 bikes do you really think you would be able to travel 100km. With all that weight, the friction and wind resistance, impossible to pull at “100% efficiency” as you put it. You would literally be pulling 15 times your own weight. Only a massive truck with a huge engine and torque could do that. I don’t know the efficiency, but I’d estimate you’d at best get 20km of distance, if you could even pull the 15 bikes at all.

  • @porth5165
    @porth5165 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

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

  • @alexandros93
    @alexandros93 3 ปีที่แล้ว +2

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

    • @OrenLikes
      @OrenLikes 3 ปีที่แล้ว

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

  • @aritrasarkar9643
    @aritrasarkar9643 3 ปีที่แล้ว +4

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

    • @LOGICALLYYOURS
      @LOGICALLYYOURS  3 ปีที่แล้ว +1

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

    • @aritrasarkar9643
      @aritrasarkar9643 3 ปีที่แล้ว

      @@LOGICALLYYOURS my pleasure

  • @MrFruxion
    @MrFruxion 2 ปีที่แล้ว +1

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

  • @KolyanKolyanitch
    @KolyanKolyanitch 3 ปีที่แล้ว +1

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

  • @kartikkosurkar4907
    @kartikkosurkar4907 2 ปีที่แล้ว +2

    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

  • @StuartSimon
    @StuartSimon 3 ปีที่แล้ว +1

    Couldn’t we derive a series formula for the general case?

  • @decoder6878
    @decoder6878 3 ปีที่แล้ว +1

    Very nice

  • @AegidiusREX
    @AegidiusREX 3 ปีที่แล้ว

    Pour n motos, il faut dépenser 1/n. Chaque moto dispose alors de (n-1)/n donc une moto peut distribuer aux autres ce qu’il manque pour qu’elles aient un réservoir plein donc 1/n à n-1 motos puisque (n-1)/n est égal à (n-1)*(1/n). Dans ces conditions, n-1 motos ont de nouveau leur réservoir plein, on retombe alors dans le cas de n-1 motos. Donc la somme totale des distances par rapport à l’unité donne somme des i/n pour i allant de 1à n soit 1+1/2+1/3….+1/n. Pour n=16 on obtient 3,38. Bien à vous

  • @mrgyani
    @mrgyani 3 ปีที่แล้ว

    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 😂..

  • @whiteghost1905
    @whiteghost1905 2 ปีที่แล้ว +1

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

  •  3 ปีที่แล้ว +1

    Nice puzzle! I initially fell into the 300km trap.
    I wrote this recursive solution in Python and I get a slightly different result:
    def bikes(n):
    if n == 1:
    return 100
    return 100 / n + bikes(n - 1)
    print(bikes(16))
    I get 338.0728993228993 for 16 bikes, which is slightly higher than your result. For 4 bikes, however, I get the same result as you.
    Could this be an artifact of rounding? I doubt it could be _that_ big.
    EDIT: Using Python's decimal library I still get 338.0728...

    • @LOGICALLYYOURS
      @LOGICALLYYOURS  3 ปีที่แล้ว +1

      Hi Christian,
      Good to see you code snippet. I'm yet to learn Python syntax, but the code looks very logical and straight forward.
      In fact, your answer is correct. I made a little fractional mistake for 100/8.

    • @sabarishravishankar9158
      @sabarishravishankar9158 3 ปีที่แล้ว

      Bro can you plse explain your code currently I'm learning python

    •  3 ปีที่แล้ว

      @@sabarishravishankar9158 Yes, sure.
      The `bikes` function will return the solution for a positive number of bikes n.
      The base case is n=1 (one bike), where you can simply travel 100km.
      For any n > 1, all bikes travel 100km/n, as Ammar explained in the video. Then, one of the bikes fuels the others and stops. From that point, you are left with n-1 bikes.
      This explains the `100/n + bikes(n-1)` formula.

    •  3 ปีที่แล้ว

      Basically, when calling bikes with a value for n, it will then call itself recursively with n-1, then n-2, and so on, when the value reaches one and then the recursion stops (return 100).

    • @sabarishravishankar9158
      @sabarishravishankar9158 3 ปีที่แล้ว +1

      @ thanks bro really appreciate your efforts finally I understood the solution

  • @yuvrajlabana313
    @yuvrajlabana313 3 ปีที่แล้ว +1

    Nice

  • @Saiiiiiiiiiiiiiiiigadu
    @Saiiiiiiiiiiiiiiiigadu 3 ปีที่แล้ว +1

    🎉👌👌

  • @CapAnson12345
    @CapAnson12345 3 ปีที่แล้ว

    Badly worded problem, but neat solution.

  • @jnlbermundo
    @jnlbermundo 3 ปีที่แล้ว

    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.

  • @maulikbabariya1145
    @maulikbabariya1145 3 ปีที่แล้ว

    Actually my approach was different, I calculated it by pushing one bike with another one until last bike will enough fuel to reach at destination!....and It gave me maximum distance of 500km! (16-----8-----4-----2-----1-----!)... (Note.:- ----- = 100km) ( ! = Destination)

    • @d.SAiNi.
      @d.SAiNi. 3 ปีที่แล้ว

      Why not towing all other bikes with one bike only (Pls ignore all other factors).