Lecture 113: Minimum Cost for Tickets || Part-1 || DP Series

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 166

  • @khushboobuwade2932
    @khushboobuwade2932 2 роки тому +20

    best playlist of dsa as all topics are covered smoothly and we don't have to switch on different resources ..thanks alot bhaiya 👍

  • @sahilanand30
    @sahilanand30 2 роки тому +3

    Best dsa course on planet..

  • @sahilagrawal8757
    @sahilagrawal8757 2 роки тому +6

    Bhaiya, you are amazing and your course is much better than other courses

  • @DPCODE72
    @DPCODE72 2 роки тому +1

    Bhaiya, jabhi mera man harne lagata tab humko dekhte hi mera man phir se energy bhar jata hain. thank you 3000

  • @uditkumar6551
    @uditkumar6551 2 роки тому +5

    Thanks bhaiya for well structured and placement oriented course

  • @cdnggk6455
    @cdnggk6455 2 роки тому +3

    bhaiya u r really doing a great job!!!! blessings to you ❤️

  • @nishankdeep3084
    @nishankdeep3084 2 роки тому

    thank you bhaiya
    maza aa gaya
    happy and safe journey bhaiya

  • @fashionvella730
    @fashionvella730 Рік тому +2

    we can use binary search to update the index+7 days and index+30 days

  • @abhay.shukla_
    @abhay.shukla_ 2 роки тому +18

    Really helpful series even for 4 year experience software engineers like us. who did not give a damn to data structures in college

    • @deepjay9472
      @deepjay9472 2 роки тому +2

      Aap kaha placed ho abhi?

    • @abhay.shukla_
      @abhay.shukla_ 2 роки тому +1

      @@deepjay9472 Currently in Headstrong. M serving NP. Trying to switch.

    • @deepjay9472
      @deepjay9472 2 роки тому +3

      @@abhay.shukla_ gud to hear! I am currently in 3rd yr do u think this playlist is perfect to crack a core company?.. I have been following this frm beginning and placements are near.

    • @JourneytoBetterSelf
      @JourneytoBetterSelf 2 роки тому

      @@deepjay9472 Are you able to solve atleast leetcode medium by yourself?

    • @abhay.shukla_
      @abhay.shukla_ 2 роки тому +2

      @@deepjay9472 yeah, no comapany will ask more than whats their in this course for DSA. Thanks to Love Babbar bhai for this great favour.

  • @harishkumar2107
    @harishkumar2107 2 роки тому

    best free of cost dsa course

  • @RahulKumar-wt9qc
    @RahulKumar-wt9qc 2 роки тому +1

    Great video bhaiya 🥰🥰

  • @rohitrohra7553
    @rohitrohra7553 Рік тому

    bhaiya u are legend , literal one

  • @AmanKumar-ds9ci
    @AmanKumar-ds9ci 2 роки тому

    Bhaiya aap abut achhe se samjhate ho pura samjh me aa jaata hai
    Please make a playlist on Kali Linux.
    God bless you 💖

  • @pramantomar822
    @pramantomar822 2 роки тому +1

    Loving the series ❤️❤️❤️❤️❤️❤️❤️❤️

  • @AdityaSharma-em8vz
    @AdityaSharma-em8vz 2 роки тому +2

    Great work!! Keep it up

  • @ellis-pr7hh
    @ellis-pr7hh Рік тому

    That was one of the best and intrsting question so far

  • @rahulchouhan517
    @rahulchouhan517 2 роки тому +2

    Thanku so much for u r hard working ♥️♥️

  • @iteself_me
    @iteself_me Рік тому

    153 ✅completed 👍Liked 04:14

  • @dakshthakur6792
    @dakshthakur6792 2 роки тому

    Its helping me a lot bhaiya . You are the best

  • @nitwaladeep4919
    @nitwaladeep4919 4 місяці тому

    great bhaiya 💓💓

  • @shreyashdubey5989
    @shreyashdubey5989 2 роки тому

    Waiting for more videos , All lectures completed !!!🙌🙌

  • @main58507
    @main58507 2 місяці тому

    Dry Run:
    2 Solutions Possible: Days [ 1, 3, 4, 5, 7, 8, 20]; Costs[ 2, 7, 15]
    Solution 1:
    {
    index = 0 1 2 3 4 5 6
    Costs = 1 3 4 5 7 8 20
    At index 0 Take Option1 -----> Cost[0] + At Index 1 Take Option2 ----> Cost[1] + Now we are at Index 6 Take Option1 ------> Cost[0]
    Illustrated Below: ->
    Days[0] ------------Option1------> 2 + Days[1] ------Option2------>7 + Days[6]---------Option1------>2
    Days[0] Cost[0]
    Illustrated Below: ->
    Days[0] ---------Option2 ---------> 7 + Days[5] ------Option1------>2 + Days[6]---------Option1------>2
    Days[0]

  • @alexrcrew1975
    @alexrcrew1975 2 роки тому +14

    bro due to your slow uploading i have to shift to other dp playlist
    we expect atleast 1 video every day
    coz we dont have much time left for our placements

    • @Rid3r387
      @Rid3r387 2 роки тому +1

      🖤

    • @cdnggk6455
      @cdnggk6455 2 роки тому +1

      bro its not just 26 min video he atleast have put around 2 hrs to research , teach, record, edit. hope u understand and all the best u will crack a good company ❤️

  • @nishantdalvi9470
    @nishantdalvi9470 2 роки тому +1

    Love bhaiya ✨✨✨

  • @_Abhishek-er4yf
    @_Abhishek-er4yf Рік тому

    love from maharashtra❤❤

  • @adityachouhan3855
    @adityachouhan3855 2 роки тому

    bhaiya vidio number 22 me kam samaj aaraha hai .
    lekin bhaiya koi baat nahi 2 time dekh luga.
    aap bus aasehi padhate rahiye
    ❤❤❤

  • @devanshbhadauria2980
    @devanshbhadauria2980 2 роки тому

    Always ready!!

  • @PRITESHKRSRV
    @PRITESHKRSRV 2 роки тому

    love you sir ❤, thanks for everything

  • @anshumanacharya9812
    @anshumanacharya9812 Рік тому +1

    In case of option1 and option2, suppose in any of the case, i comes 1, we have dp[i] as INT_MAX as initialised, so the option becomes cost[1] + INT_MAX. Should not this give integer overflow for any value of cost[i] >= 1 ?
    Please answer if any body knows.
    Thanks bhaiya for the videos. These are very helpful.

  • @yashovardhanrathore3442
    @yashovardhanrathore3442 Рік тому

    swad aa gya bhaiya

  • @abhishekanand9430
    @abhishekanand9430 6 місяців тому

    this question came in my placement

  • @adityauniyal8632
    @adityauniyal8632 2 роки тому

    You are doing well

  • @lucario4399
    @lucario4399 2 роки тому

    3:20 recursion

  • @KratosProton
    @KratosProton 2 роки тому +1

    Great explaination

    • @imshivendra
      @imshivendra 2 роки тому

      anyone please tell after DP this series will be completed or some more topics are left.

  • @ombhandari6148
    @ombhandari6148 2 роки тому

    Keep it up bhaiya ✨

  • @MonkeyDLuffy-t2b
    @MonkeyDLuffy-t2b Місяць тому

    20:05

  • @aveermukherjee6419
    @aveermukherjee6419 2 роки тому +1

    Sir plz finish the dp series fast.It would be very helpful

    • @imshivendra
      @imshivendra 2 роки тому

      anyone please tell after DP this series will be completed or some more topics are left.

    • @aveermukherjee6419
      @aveermukherjee6419 2 роки тому

      @@imshivendra More topics are left.

  • @vikassahu6002
    @vikassahu6002 2 роки тому

    Awesome lecture...
    Keep going 👍

    • @imshivendra
      @imshivendra 2 роки тому

      anyone please tell after DP this series will be completed or some more topics are left.

  • @sanguleshashank
    @sanguleshashank 2 роки тому +2

    Sir Discord link invalid show ho rahi hai. Can you update it please.

  • @iuashrafi
    @iuashrafi Рік тому

    great bhaiya

  • @prachisharma9675
    @prachisharma9675 2 роки тому

    Your videos are awsm keep doing the great work!

    • @imshivendra
      @imshivendra 2 роки тому

      anyone please tell after DP this series will be completed or some more topics are left.

  • @jainikprajapati1632
    @jainikprajapati1632 2 роки тому

    Too good 👌👌👌

  • @deepjay9472
    @deepjay9472 2 роки тому

    Please start a System Design Course... Much needed for placements >>>>>

  • @siddhantmaharana3936
    @siddhantmaharana3936 Рік тому

    This helped a lot thank you.

  • @Dipzeus
    @Dipzeus 2 роки тому

    Bhaiya continue. And start a seperate in detail c++ language course that's it

  • @officialgamer7433
    @officialgamer7433 5 місяців тому

    Bro reshuffle this video in playlist.

  • @GuruPrasadShukla
    @GuruPrasadShukla 2 роки тому

    we'll use 3 var
    thx bhaiya

  • @bigdreams8924
    @bigdreams8924 2 роки тому

    Bhaiya Please Jldi Jldi Videos Daalo Thoda😅😅i Know Its Hard... But Bhaiya I am waiting for the last topics.Bit Manipulation+Dp And All.. Khin or han H Nhi... So Please Cover them First If Possile Or Cover the series fast if possible

  • @nitishbharat9942
    @nitishbharat9942 Рік тому

    thank you

  • @prabhatmishra5667
    @prabhatmishra5667 2 роки тому

    Bhayia Please teach Word Wrap Problem with DP approach. Not memoization one

  • @RandomGuy-xq1hk
    @RandomGuy-xq1hk 11 місяців тому

    nice video😇😇😇

  • @studygainer5482
    @studygainer5482 Рік тому

    osssm content

  • @KACodes
    @KACodes 2 роки тому

    Maza aa raha hai bhaiya

  • @dipakkumarsingh.7151
    @dipakkumarsingh.7151 2 місяці тому

    thank u bro

  • @sagnikmodak4178
    @sagnikmodak4178 Рік тому

    Thanks sir

  • @imshivendra
    @imshivendra 2 роки тому +4

    anyone please tell after DP this series will be completed or some more topics are left.

  • @anshulsingh1265
    @anshulsingh1265 2 роки тому +1

    yrr bhaiya august mein placements...thoda jaldi video nhi daal skte aap?? I know it's difficult for you but bhaiya try kijiye daily 1 video ka....it's a Humble request...

    • @syndaxlevenis6785
      @syndaxlevenis6785 6 місяців тому

      bhai hua ya nhi??

    • @anshulsingh1265
      @anshulsingh1265 6 місяців тому

      @@syndaxlevenis6785 han bhai lggyi placement but inki video se nhi khud paddh ne se

  • @abhisheksameer1842
    @abhisheksameer1842 2 роки тому

    thanks bhaiya

  • @rajeshchaurasiya9
    @rajeshchaurasiya9 Рік тому

    2:17 bhaiya ye aap kya rhe hai?? 😀

  • @alexrcrew1975
    @alexrcrew1975 2 роки тому +2

    bring more videos!!
    completed the series till now

    • @imshivendra
      @imshivendra 2 роки тому +1

      anyone please tell after DP this series will be completed or some more topics are left.

  • @adityaj21
    @adityaj21 2 роки тому

    lagta hai khud hi padhna padega ab

  • @fazerugbrug439
    @fazerugbrug439 2 роки тому

    loved it

  • @K_EC_SakshamSingh
    @K_EC_SakshamSingh 2 роки тому +1

    Bhaiya please thoda frequency increase kar do🥲🥲

  • @girikgarg8
    @girikgarg8 Рік тому

    Done!

  • @Motivational_talks
    @Motivational_talks Рік тому +1

    bhyia..mera ye dp ka first time series hai..means ki pahali baar kr ra hu...lkein dar v lagra h ki..kya mujhe samjh m aara h ki nahii....

  • @shahzadalam6409
    @shahzadalam6409 2 роки тому

    really helpful

  • @jayant2366
    @jayant2366 2 роки тому

    bhayia ab intezaar nhi hota aur videos kab ayengi 🙏

  • @naivaidyayadav2884
    @naivaidyayadav2884 2 роки тому +2

    Thank you bhaiya but may I know how much video or topics are remaining?

  • @movie961
    @movie961 Рік тому

    Bhaiya me direct tabulation wala soch nhe pata recursion ke help se soch pata ho
    kya karo ?

  • @AnkuGarg
    @AnkuGarg 2 роки тому

    Why do we need space optimisation? Our dp array can have at max 365 + 1 size right? Isn't it constant?

  • @voldemortff8183
    @voldemortff8183 2 роки тому

    amazinggg

  • @Geetanjalichawla
    @Geetanjalichawla 2 роки тому

    🔥🔥🔥🔥

  • @vedantchaudhari8610
    @vedantchaudhari8610 Рік тому

    bhaiyaa ye kese pata chalega ki konsa prblm DP se krna aur konsa kisi aur technique se ?

  • @bhardeakshita
    @bhardeakshita 3 місяці тому +1

    honestly speaking i didn't understand the tabulation approach of this question
    sed :(

  • @silverlining7778
    @silverlining7778 Рік тому

    helpful

  • @anshulkhandelwal8316
    @anshulkhandelwal8316 2 роки тому

    why we are taking extra variable i and storing index ,why we can not write
    solve(n,days,cost,index+7) and solve(n,days,cost,index+30)

    • @tejasshaha6629
      @tejasshaha6629 2 роки тому

      Because days consecutive nahi ho sakte like 1,2,3,4. Days may be in random order like 1,3,7,100 thats why doing like this..

  • @rahulsinghaswal07
    @rahulsinghaswal07 9 місяців тому

    kya hum tabulation mein -7 and -30 nhi karenge??

  • @anantsinghal3180
    @anantsinghal3180 2 роки тому

    Bhaiya aap koi web development ka course laane ka plan kar rahe ho kya ???
    Please do reply......

  • @bat_man1138
    @bat_man1138 2 роки тому +1

    Next vid

  • @abhinavrawat2522
    @abhinavrawat2522 2 роки тому

    Bhaiya is Computer Science and Communication Engineering good? Does it deals with coding ? Is it a IT branch? Do we become a software engineer after completing it?

  • @DeepakYadav-ii4lt
    @DeepakYadav-ii4lt 2 роки тому +4

    Bhaiya notes upload Kar do phle ke pls bhaiya

    • @lovebabbar8280
      @lovebabbar8280 2 роки тому +3

      Chal rha h kaam dost

    • @tejasshaha6629
      @tejasshaha6629 2 роки тому +2

      @@lovebabbar8280 ye kon hai 6 subscribers wala😂😂. This is not main channels Babbar bhaiya I guess...

  • @priyanshugupta9192
    @priyanshugupta9192 2 роки тому

    Bhaiya I am unable to join the discord server plz anyone suggest any solution

  • @NoxIITK
    @NoxIITK 5 місяців тому +1

    Bruh TF man
    None of the comments are fun to read.
    All of them are either appreciating the author or begging the author.
    No space for light humor ig.

  • @rajjaiswal6150
    @rajjaiswal6150 2 роки тому

    bhaiya please complete the series of python 15 videos series it has only 11 parts please complete that series asap 🙏🙏🙏😭

    • @deepak44222
      @deepak44222 Рік тому

      mat rowo. kahin aur se dekh lo.😞😞🥺🥺

  • @duniyakibaat-01
    @duniyakibaat-01 2 роки тому

    Bhaiya jo relevel platform mein questions puche jate hai ve kaise. Solve kare

  • @rajeshbehura4721
    @rajeshbehura4721 2 роки тому

    If we don't take (n+1) size of vector then also it may work only(n) is enough

    • @imshivendra
      @imshivendra 2 роки тому +1

      anyone please tell after DP this series will be completed or some more topics are left.

    • @Isha_Sethi
      @Isha_Sethi 2 роки тому

      @@imshivendra somebody told only some topics are left now

    • @dhruvkhokhar8162
      @dhruvkhokhar8162 Рік тому

      Yes, we require only n for memoization but (n+1) for tabulation in this case.

  • @aryanjha2218
    @aryanjha2218 2 роки тому

    bhaiya bade dino se live nhi aaye yt pe 🌚

  • @aniketambat6334
    @aniketambat6334 Рік тому

    understand++

  • @d_das7
    @d_das7 2 роки тому

    How many lectures are left for dp???

  • @Dipzeus
    @Dipzeus 2 роки тому

    Bhaiya consistency downnnn .... waiting

  • @shivangammahajan4140
    @shivangammahajan4140 2 роки тому

    Bhai videos consistent kro thodi.. Placements sir pe ha dp khtm krva do jldi se

  • @adityauniyal8632
    @adityauniyal8632 2 роки тому

    Bhaiya ye playlist puri karana

  • @suryansh1061
    @suryansh1061 2 роки тому +1

    Bhaiya total kitne Lectures honge

    • @alexrcrew1975
      @alexrcrew1975 2 роки тому

      60

    • @suryansh1061
      @suryansh1061 2 роки тому

      @@alexrcrew1975 mere bhai kaha so rahe ho 60 toh kabke ho gaye

  • @AnshikaMishra-c7o
    @AnshikaMishra-c7o Рік тому

    Sir aapka lecture 1 se kha se milega

  • @Coder_abhi01
    @Coder_abhi01 2 роки тому +1

    Bhayia AAP bhii toh Aman dattarwal Ko jaantey ho na achey se batao kon sahi hai please

    • @Ayush_.
      @Ayush_. 2 роки тому

      mtlb ? kon shi he what ?? kiss perspective me baat kar rhe ho ?

  • @ranganpal9380
    @ranganpal9380 2 роки тому +2

    Is this course sufficient for competitive programming?

    • @deepak44222
      @deepak44222 Рік тому

      yahan tak aa gaye aur abhi tak nahi pata chala.😂😂😂😂😁😁😁😁

  • @voldemortff8183
    @voldemortff8183 2 роки тому +1

    8 din hogye no video !😥

    • @herbert_1
      @herbert_1 2 роки тому

      Unsubscribed !! This wasn't expected from babbar Bhaiya... Initially he said that he'll complete the course by 17th March. He didn't stand on his commitment, really disappointed.

  • @piyushgaur6975
    @piyushgaur6975 2 роки тому

    khopdi khaali kardi

  • @TechCluesByAbsek
    @TechCluesByAbsek 2 роки тому +1

    hello, babbar bhaiya, ap dp kab tk kara doge?

  • @premsingh6967
    @premsingh6967 Рік тому