L1. Introduction to Stack and Queue | Implementation using Data Structures

Поділитися
Вставка
  • Опубліковано 17 вер 2024
  • Find problem link, notes under Step 9: takeuforward.o...
    Follow me on socials: linktr.ee/take...

КОМЕНТАРІ • 147

  • @takeUforward
    @takeUforward  2 місяці тому +103

    TUF+ launching on 7th August, are you excited about it? If you are wanting to give hate for us bringing a paid model. Here are a few things you must read.
    1. if you are an engineer, you know the server cost to run takeuforward website which has 13M+ views every month.
    2. TUF stays free, so should not affect anyone, just blink an eye.
    It will be a course, but not a course! Miles apart from what others are providing you..

    • @Josuke217
      @Josuke217 2 місяці тому +6

      Yes , also this playlist was uploaded yesterday right?

    • @takeUforward
      @takeUforward  2 місяці тому +15

      @@Josuke217 yes it was, had some audio issues.

    • @Josuke217
      @Josuke217 2 місяці тому +7

      ​@@takeUforwardthanks for uploading high quality content for free , we appreciate it a lot :)

    • @babulalyadav4305
      @babulalyadav4305 2 місяці тому +6

      @takeUforward thanks for uploading high quality content for free , we appreciate it a lot :)

    • @ishankavdia5380
      @ishankavdia5380 2 місяці тому +2

      Thank you for the amazing lecture series! Learning so much from your lectures, GOAT of DSA!!

  • @Sharath_Codm
    @Sharath_Codm 2 місяці тому +310

    Vote For Strings NXT!

    • @takeUforward
      @takeUforward  2 місяці тому +171

      August end! Promise.

    • @realharshgautam
      @realharshgautam 2 місяці тому +8

      ​@@takeUforward
      Please make it earlier please raj bhaiya, i know you have full time role & other things going on but please try to make it at earliest

    • @SuvradipDasPhotographyOfficial
      @SuvradipDasPhotographyOfficial 2 місяці тому +1

      @@takeUforward amazing striver, thank you so much

    • @PavanAditya-zv4ic
      @PavanAditya-zv4ic 2 місяці тому

      ​@@takeUforwardlove you striver

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

      @@takeUforward no what? why? Bring it in the July end itself.

  • @KartikeyTT
    @KartikeyTT 2 місяці тому +66

    TIMESTAMPS
    0:00 Intro
    1:54 What is Stack
    5:37 What is queue
    8:58 Implementing stack and queue using inbuilt library
    10:47 Implementing stack using array
    19:30 Implementing queue using array
    31:53 Implementing stack using linked list
    38:22 Implementing queue using linked list
    44:58 Implementing stack using queue
    51:08 Implementing queue using stack (approach 1)
    58:12 Implementing queue using stack (approach 2)

  • @toushikbanik8452
    @toushikbanik8452 Місяць тому +29

    @take U forward. In 43:41 you also have to do end = end->next;

  • @sharath2003
    @sharath2003 2 місяці тому +50

    Guys comment "Strings" for next !!!

  • @harshitmnnit
    @harshitmnnit 2 місяці тому +5

    gonna buy the TUF+ also ...we will support you striver...aapne hume itna high quality content free me diya h , now its our responsibiilty to support you

  • @shatakshishukla8858
    @shatakshishukla8858 2 місяці тому +15

    please heaps and strings playlist next!! :")

  • @simanraj8278
    @simanraj8278 2 місяці тому +2

    finally GOAT playlist of stacks on youtube 😍😍❤❤

  • @gargkapil
    @gargkapil 2 місяці тому +2

    Good to see a new lecture series

  • @ViswatejAbbireddy-w6e
    @ViswatejAbbireddy-w6e 2 місяці тому +25

    At 43:35 I think end = end->next is missing

  • @_NITESHMOTIVATION
    @_NITESHMOTIVATION 2 місяці тому +2

    remember bro is our teacher not slave !!! you can upload our class whenever you think sir!!!

  • @brainmosquito7
    @brainmosquito7 2 місяці тому +5

    striver plz release full playlist once nd also string plzz

  • @SomrikTapaswi
    @SomrikTapaswi Місяць тому +1

    wow :) now we will have grasp on stack and queues

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

    This playlist is so helpful for our upcoming placements. Love from UP ❤

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

    Thank u bhaiya ,
    Jabardast lecture hai.
    Pura revision ek baar me within short period of time.

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

    This is a gem channel. Thanks

  • @Messi23485
    @Messi23485 2 місяці тому +2

    Amazing video

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

    Here after seeing your post about the series. Thanks a lot ❤

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

    wake up babe,striver just drop another banger!!!!

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

    Outstanding method of teaching

  • @madhurimabhowmick7899
    @madhurimabhowmick7899 2 місяці тому +1

    thanks a lot for this. strings next pleaseeeee

  • @mayur367
    @mayur367 2 місяці тому +2

    Need heap sir, please ❤❤

  • @peakyblinderzz
    @peakyblinderzz 2 місяці тому +2

    Waiting for string series

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

    Striver, it would be great if you can add timestamps in this video. Thank you so much for this DSA playlist!!!

  • @AbhijayaPal-dq3zt
    @AbhijayaPal-dq3zt Місяць тому

    Thanks alot raj sir, helpful playlist, please upload strings also

  • @deveshsingh522
    @deveshsingh522 Місяць тому

    Hoping for strings by end of August and Heaps by end of September. I think rest everything is covered. Looking forward to TUF+ and what it will have.

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

    The OG is back again.........

  • @anubhabdas9553
    @anubhabdas9553 2 місяці тому +2

    In the push in queue using LL, in the else condition, end->next = temp; But after, the end should also be pointing to temp right?

  • @PrakashRai-ff3pr
    @PrakashRai-ff3pr Місяць тому +1

    I am waiting for this😢i search on tuf and got old lecture i thought when will you drop new video and now coincidently i am hear for search of stack playliST and now its available

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

    Thank you so much sir your lecture is awesome

  • @shetty-m4d
    @shetty-m4d 2 місяці тому

    Bro i can understand easily after seeing your videos but when i am solving question for first time i am not able to do please give some advice or tips. Please striver bhaiya reply. By the way i love ur way of teaching❤

  • @srishtipandey6068
    @srishtipandey6068 Місяць тому

    @striver please upload heap playlist. Most needed right now

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

    Great Content ❤

  • @ketakilokare9613
    @ketakilokare9613 17 днів тому

    please upload "string" series......eagerly waiting

  • @dhanushm9166
    @dhanushm9166 2 місяці тому +3

    tuf+ 🔥👇

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

    WILL COMPLETE THIS PLAYLIST TODAY
    AND COMMENT ON LAST VIDEO

  • @FullFootball-t5u
    @FullFootball-t5u 28 днів тому +1

    I am slowly stating to believe that this course is in C++

  • @modigautam7009
    @modigautam7009 Місяць тому +1

    one mistake in optimal approach
    solution :
    int trap(vector& height) {
    int n=height.size();
    int unit=0;
    int i=0,j=n-1;
    int l_max=0,r_max=0;
    while(i!=j)
    {
    if(height[i]height[i])
    unit=unit+l_max-height[i];
    else
    l_max=height[i];
    i++;
    }
    else if(height[j]height[j])
    unit=unit+r_max-height[j];
    else
    r_max=height[j];
    j--;
    }
    else
    {
    l_max=max(l_max,height[i++]);
    }
    }
    return unit;
    }

  • @VighneshRaikar-sh9nu
    @VighneshRaikar-sh9nu 14 днів тому

    You missed something in queues implementation using linked list in the push function you have to add (end=temp)

  • @subornonaskar1932
    @subornonaskar1932 2 місяці тому +1

    Hii .. please upload string playlist and Java collection

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

    Hope you are doing well !

  • @srivishwap6107
    @srivishwap6107 2 місяці тому +1

    thank you bhaiii

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

    amazing bhaiya

  • @SamirKumarRakshit-c4z
    @SamirKumarRakshit-c4z 2 місяці тому +3

    What happened to the playlist?

  • @aditidump
    @aditidump 15 годин тому

    bhaiya arent the words "push" and "pop" not suitable for queue? we should use enque and deque right?

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

    yayyyy finally its here

  • @rutujashelke4208
    @rutujashelke4208 18 днів тому

    Understood

  • @AtulSingh-dp8wo
    @AtulSingh-dp8wo Місяць тому

    Correct me if I'm wrong but the queue using array implementation in the video is actually the implementation of a circular queue right? instead of the traditional queue implementation

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

    Thank you brother

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

    Thanks Raj bhai

  • @harshitshrivas5444
    @harshitshrivas5444 21 день тому

    Striver bro realy need String playlist noww

  • @sanjitkumarjha9282
    @sanjitkumarjha9282 6 днів тому

    Bro when will the string playlist will come???

  • @darshilmodi6851
    @darshilmodi6851 Місяць тому

    understood

  • @LoadTheCODE07
    @LoadTheCODE07 2 місяці тому +1

    Thanks bro... Might be ab video private nhi hoga

  • @cdnggk6455
    @cdnggk6455 2 місяці тому +3

    strings banao bhai ab, strings pe bahut kam quality content hai

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

    lessgo we got stacks now

  • @akshat1078
    @akshat1078 2 місяці тому +1

    Next Heap??

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

    Thanks

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

    amazing bro @takeUforward

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

    Completed 17th July

  • @The_Komedy
    @The_Komedy Місяць тому

    can you make a course like this for web development too>? 🥺

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

    Bhaiya can u make a detailed video on tuf+

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

    Striver ❤

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

    String series please..

  • @mozeel_v
    @mozeel_v Місяць тому

    43:33 Implementation of queue using LinkedList: after end->next = temp u forgot to update end= temp, kindly correct this

  • @arijitbasu3756
    @arijitbasu3756 Місяць тому

    In implementation of queue using stack , why the pop is using lifo (deleting from the last)..It should follow fifo (deleting from the first )..plz explain

    • @himage6540
      @himage6540 12 днів тому +2

      we shifted all from s1 to s2. therefore element that got inserted first in s1, is at the top in s2. hence it will be popped, thats what we intended to do.

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

    bhaiya can you make a saperate video on printing all lcs , please.

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

    Wasnt this video uploaded yesterday striver?

  • @The_Komedy
    @The_Komedy Місяць тому

    please attach these videos link in the website..

  • @Kesarmaurya-u6t
    @Kesarmaurya-u6t Місяць тому

    please post
    heaps playlist

  • @valendradangi1822
    @valendradangi1822 Місяць тому

    Should n't it be (s2.empty == 0) ?

  • @chaithuamala4348
    @chaithuamala4348 6 днів тому +1

    💌💌

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

    My goat

  • @sangharshsingh2073
    @sangharshsingh2073 2 місяці тому +1

    String Please
    Friends please do vote for String

  • @kanikajain5627
    @kanikajain5627 2 місяці тому +1

    Strinsg

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

    ❤❤❤

  • @niteshsingh5818
    @niteshsingh5818 Місяць тому

    Strings

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

    Are these being uploaded again as they were here yesterday no?

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

      yes re-uploaded because of editing issues

  • @ShubhamKumar-vk8me
    @ShubhamKumar-vk8me 2 місяці тому +1

    Bhaiya String pahle complete karba dete

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

    God is here

  • @urBro.Z
    @urBro.Z 2 місяці тому

    Me watching this during my exams.....😅❤

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

    Munna bhaiyya Mirzapur waley.

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

    the greenflag series 🤭🤭

  • @SahilGupta-cd8lc
    @SahilGupta-cd8lc 16 днів тому

    1:01:39

  • @Halid-pl1to
    @Halid-pl1to 9 днів тому

    string

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

    I still not got it, if Tuf+ is free or paid?

    • @EDU-Zone679
      @EDU-Zone679 Місяць тому +2

      Bro whatever stuff like videos artice sheet you can acces now all will remain free as it is . In TUF+ there will be some new additional feature for which we have to pay

    • @utkarshsingh09
      @utkarshsingh09 Місяць тому

      @@EDU-Zone679 thnx Brother 🙌

  • @akashsahoo2421
    @akashsahoo2421 Місяць тому

    Why is there 59k views and only 1k likes ,those who don`t likes these kind of videos ,they dont deserve these videos.

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

    1st comment ❤

  • @udbhavrohatgi3653
    @udbhavrohatgi3653 Місяць тому

    us

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

    Hlwwwww

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

    First view , thank you striver❤ ,pin my msg

  • @Anonymous____________A721
    @Anonymous____________A721 2 місяці тому +3

    1st comment
    Pin me

  • @KeerthanaPatnana
    @KeerthanaPatnana Місяць тому

    understood