Learn Stack data structures in 10 minutes 📚

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 532

  • @BroCodez
    @BroCodez  3 года назад +118

    import java.util.Stack;
    public class Main{

    public static void main(String[] args) {

    // *******************************************************

    // stack = LIFO data structure. Last-In First-Out
    // stores objects into a sort of "vertical tower"
    // push() to add objects to the top
    // pop() to remove objects from the top

    // uses of stacks?
    // 1. undo/redo features in text editors
    // 2. moving back/forward through browser history
    // 3. backtracking algorithms (maze, file directories)
    // 4. calling functions (call stack)

    // *******************************************************

    Stack stack = new Stack();

    //System.out.println(stack.empty());

    stack.push("Minecraft");
    stack.push("Skyrim");
    stack.push("DOOM");
    stack.push("Borderlands");
    stack.push("FFVII");

    //String myFavGame = stack.pop();
    //System.out.println(stack.peek());
    //System.out.println(stack.search("Fallout76"));
    System.out.println(stack);

    }
    }

    • @techgeny2822
      @techgeny2822 3 года назад +3

      Please create all of lessons related to data structure and algoritms

    • @handsanitizer2457
      @handsanitizer2457 3 года назад +1

      Great video can you also do a series on problem solving, programming problems.love the real life examples dope

    • @joyceasante8292
      @joyceasante8292 Год назад

      import java.util.Stack;
      public class Main
      {
      public static void main(String[] args) {
      Stack stack = new Stack();
      //System.out.println(stack.empty());

      stack.push("Green Plate");
      stack.push("Yellow Plate");
      stack.push("Blue Plate");
      stack.push("Red Plate");
      String plate = stack.pop();
      //System.out.println(stack.peek());
      //System.out.println(stack);
      //System.out.println(plate);
      //System.out.println(stack.search("Pink Plate"));
      for(int i = 0; i < 1000000000; i++){
      stack.push("Green Plate");
      }

      }
      }

    • @josebolado2229
      @josebolado2229 Год назад

      Is there a video where you explain how the methods work?

    • @Aditya-oi5hr
      @Aditya-oi5hr 8 месяцев назад

      Xxx

  • @Ashbrringer
    @Ashbrringer 3 года назад +43

    Your 100 videos for Java/the 12 hours course for Java helped me a lot!
    I have Algorithms and Data Structures this semester and we are working with Java, so I hope that these videos will be helpful as well.

  • @CataStudies
    @CataStudies Год назад +76

    Hopefully these next 12 hours will be the mark of my start of years of programming and not me just giving up mid way.
    Edit: so I till now believed I answered people asking for an update, seem I never did. For those curious I burned out quickly after the making of this comment, but couple of months ago I picked up learning again at a much slower pace. No big goal, just keeping the mentality of learning it because I found it fun and interesting.

    • @162sujiths4
      @162sujiths4 Год назад +2

      Did you complete what you have started?

    • @rain407
      @rain407 Год назад

      ​@@162sujiths4 we are asking the same question on the same day lol

    • @yasminemokraoui3855
      @yasminemokraoui3855 11 месяцев назад +2

      Do you know if this is included in the 12 hours one ?

    • @CataStudies
      @CataStudies 11 месяцев назад

      @@162sujiths4 No :) I completely gave up on programming as a career

    • @CataStudies
      @CataStudies 11 месяцев назад

      @@yasminemokraoui3855 I do not know/remember anymore.

  • @jinxKombat
    @jinxKombat 2 года назад +9

    You're amazing. Every video I find explains the data structure, but fail to provide a coding example. You are a true Bro.

  • @muhammedanshif7738
    @muhammedanshif7738 Год назад +2

    I have a honest reply from India, I am a student learning data-struchture and algorithm from India. Here I have watched to implement the merge sort And quick sort for some days. But watching your video of 10 minutes lead to clear understanding of concepts thank you for your effort, keep it up👍.

  • @TonyStack
    @TonyStack 3 года назад +103

    Broski I love your videos, can't wait to watch more videos about Data Structures and Algorithms!

    • @BroCodez
      @BroCodez  3 года назад +15

      thanks for watching!

  • @inamullahkhan7793
    @inamullahkhan7793 3 года назад +18

    Well bro data structure and algorithms tutorials are finally there so excited for these tutorials.........

  • @dasdisdus774
    @dasdisdus774 3 года назад +3

    I love how you explain this as simple as possible with some joke😂 Thank you and don't stop making video like this!!!

  • @zoni36
    @zoni36 3 года назад +15

    Can you do a playlist on how to teach difficult concepts? I have watched 2 of your playlists and you do a far better job of explaining and teaching than most professors I have had. I'm thinking being able to explain concepts in easy to understand concepts is a very important skill. Once someone has the knowledge and understanding of a topic, it is difficult for them to go back and teach the basics, but you do a great job of breaking everything down to a beginner level. I would love to be able to explain things in such a clear, concise and interesting way.

  • @vinaystricker9930
    @vinaystricker9930 3 года назад +4

    This series of DSA helps so many programming aspirants.Thanks BRO for this wonderful tutorial..

    • @BroCodez
      @BroCodez  3 года назад +1

      You're welcome! Thanks for watching!

  • @gutzimmumdo4910
    @gutzimmumdo4910 Год назад +3

    best explanations on yt on data structs, not only the intuition but the code aswell, great job👌👏

  • @hanikhatib2012
    @hanikhatib2012 4 месяца назад +1

    Idk why but it took me so long to finally find someone to explain the methods and you made it look so easy

  • @proxyaccount4466
    @proxyaccount4466 Год назад +1

    Can't get enough of that Skyrim spiel, came out of left field.
    Your DSA playlist was a big help during my application attempts last year.
    Haven't had much luck, but I'm trying again and going through all the vids.

  • @leslilawrence5733
    @leslilawrence5733 3 года назад +4

    My bro accepted the request of DSA 👊 I'm grateful to you bro ❤️ I'm very excited to learn DSA from you 🤯 Thank You 😁🙌

  • @mdsafwathullahsafiansari2330
    @mdsafwathullahsafiansari2330 3 года назад +6

    You don't know how much I need DSA!!
    Thanks for these and please don't stop!
    Can't wait for it to complete!!!

  • @chrisagasay
    @chrisagasay Год назад +1

    The way you explained this made things so clear to me. Thank you!

  • @neiljohnavelino42
    @neiljohnavelino42 2 дня назад

    Bruh your literally a savior. I'll spend more time on your channel than zoom meetings with my compsci prof

  • @Neo_guru
    @Neo_guru 3 года назад

    Man this channel is a gold mine for CS Course information for free and they are great lessons! Your doing the lords work man God Bless!

  • @michelberden3717
    @michelberden3717 2 года назад +4

    This guy is way too underrated imo

  • @RaevenConsolacion
    @RaevenConsolacion 6 месяцев назад +8

    bro got good games

  • @zakmartin7567
    @zakmartin7567 3 года назад

    awww. you blew up on youtube. It's always nice seeing your numbers go up when I return to school and your channel after term breaks. thanks big bro(code)

  • @andreuz_2998
    @andreuz_2998 11 месяцев назад

    I love how you actually make a real life exaple with the concepts . this help me a lot ! to acxtually understand what is explain. i'v been realizing that is not as hard as i thought it would be.
    Thanks a lot for your help.

  • @chzzh6634
    @chzzh6634 3 года назад +5

    Bro, ILY. Data structures finally T_T
    I'm waiting for another data structures & algo vids :)

  • @emausdetiquicia6636
    @emausdetiquicia6636 Год назад

    Loved that at the end you explained where stacks are actually used.

  • @olgavasileva2521
    @olgavasileva2521 2 года назад

    You are the best teacher. Thanks for your work.

  • @sPranayreddy
    @sPranayreddy 8 месяцев назад

    Best and easily understandable explanation of DSA concepts

  • @kobeyb5639
    @kobeyb5639 3 года назад

    Awesome channel Bro! Definitely the best programming channel I’ve found so far.

  • @meltdown6856
    @meltdown6856 3 года назад +2

    Hey Broo, long time!
    Just returned here to see that this channel has literally blown up! You deserve it, with videos like these, I'm just waiting for a million :D

    • @BroCodez
      @BroCodez  3 года назад +1

      Hey MeltDown! Thanks for the support!
      Yep, it's been a heck of a ride! We'll hit that 1M mark eventually :)

    • @drewbhardwaj
      @drewbhardwaj 3 года назад

      @@BroCodez We'll hit 1M in no time.🍾

  • @felipecherpinski6585
    @felipecherpinski6585 2 года назад

    This is a random comment. Your videos are simple and easy to understand! Thank you!

  • @pennylee1127
    @pennylee1127 3 года назад +2

    Hey Bro Code, your videos are amazing and explained the concept clearly with given the reality example. Really appreciated that!

  • @rabihak2881
    @rabihak2881 2 месяца назад

    Bro I’m sure you’ll carry my studies in uni as computer scientist
    One of best ever tutors

  • @moshimoshi_04
    @moshimoshi_04 Год назад

    you're teaching amazing bro... better than that old CS teacher ....

  • @edgetech3016
    @edgetech3016 3 года назад

    I have seen many videos on dsa but they are always say dsa is very hard so on.. but your learning style is very different i understand stack very easily thank you for making this video..😊😊😊🙏

  • @Beyondbeyon
    @Beyondbeyon 5 месяцев назад

    This was better than all of my c/cpp data structure teachers combined. Thanks man

  • @kia808
    @kia808 2 года назад

    Best explanation of stack on RUclips.. 😇

  • @TheSunr1se
    @TheSunr1se 3 года назад

    Dropping a comment down below. Really good explained. Nice video

  • @muhammadyousaf2533
    @muhammadyousaf2533 3 года назад

    Love you from Pakistan 🇵🇰 I am waiting for this course please upload data structure and algorithm video daily

  • @azuzal-badri7257
    @azuzal-badri7257 2 года назад +1

    Love you BRO
    el mejor tutorial en el mundo 🥰

  • @PhilipLafeber
    @PhilipLafeber 10 месяцев назад

    Theoretical explanation WITH visual support. Wel done!

  • @BN-cr3el
    @BN-cr3el 3 года назад +1

    Thank you, please make more algo videos. You are the best instructor I never had 💯

  • @daytonwickerd6212
    @daytonwickerd6212 8 месяцев назад

    Your Videos are fantastic. You explain things very well and are very entertaining. Thanks for making my studies fun.

  • @okorougochukwusamuel9962
    @okorougochukwusamuel9962 3 года назад

    OMG !!! data structure made easy , you killed it bro .

  • @derfwerd
    @derfwerd 2 года назад

    I still have FF7 for playstation 1 from when I was a little kid. So many discs. One of my favorite games of all time.

  • @marianojimenez990
    @marianojimenez990 Год назад

    Great explanation!! Grettings from Argentina!!

  • @shahabtop
    @shahabtop 2 месяца назад

    Thanks for your concise and helpful video. It would have been pretty useful if you had mentioned the time complexity of different operations in a mere stack.

  • @jayquanbl0nd
    @jayquanbl0nd 8 месяцев назад

    clear concise straightforward. appreciate it big time

  • @Luisangel-gu4iz
    @Luisangel-gu4iz 9 месяцев назад

    best explanations on yt on data structs

  • @seantristan5991
    @seantristan5991 Месяц назад

    I saw you haven’t uploaded in 3 months I hope you still around doing ur thing these videos have saved me so much on unclear concepts and also learning concepts before I even take the course

  • @Cherry-z5u
    @Cherry-z5u 9 месяцев назад

    Formal and interesting at the same time, nice explanation!

  • @Respect_V187
    @Respect_V187 3 года назад

    Love your videos bro! please keep making them. I learned a lot from your videos and I actually made Tic-tac-toe game in Java by watching your tutorial

  • @horiaungureanu4547
    @horiaungureanu4547 Год назад

    good easily to grasp content for noobs, thank you!

  • @mohamedsobhy6441
    @mohamedsobhy6441 3 года назад +1

    Wonderful ❤️❤️❤️❤️ Hope you explain all course

  • @hassanhussam7300
    @hassanhussam7300 3 года назад

    learning to program becomes very easy with you. Thank you. Always LIKE

  • @fernandoguimaraes4415
    @fernandoguimaraes4415 Месяц назад

    Great video my friend!!! Congrats and thank you.

  • @monarch2002
    @monarch2002 Год назад +1

    tomorrow I got DSA internals it helped me at the last minute thank u so much @bro code 😊

  • @StarInSl3ep
    @StarInSl3ep 3 года назад

    Cant wait to see more videos under this subject keep the good work man much appreciation

    • @BroCodez
      @BroCodez  3 года назад

      Thanks for watching! I will try to release these weekly

  • @marinnomba192
    @marinnomba192 21 день назад

    Bro Code is one of the best Free source of knowledge

  • @Naresh-dev-angular-dotnet
    @Naresh-dev-angular-dotnet 2 года назад +1

    example is the ultimate bro!!!

  • @aleksandarduncevic9548
    @aleksandarduncevic9548 Год назад

    Great content, you are explaining topics in very understandable way.

  • @IMCYT
    @IMCYT 3 года назад

    "Damn it Todd Howard you did it again"
    I am still wheezing

  • @TarekBuhdeima
    @TarekBuhdeima 2 года назад

    Awesome explanation at just the right speed

  • @MrMashgiach
    @MrMashgiach Год назад +1

    Thanks!!

  • @RunningProgrammer
    @RunningProgrammer 3 месяца назад

    Thanks bro, it's a completely clear explanation! I'm checking your other videos to refresh my java knowledge

  • @inamullahkhan7793
    @inamullahkhan7793 3 года назад

    I think I'll understand data structures and algorithms very well from your tutorials series very excited thank you Bro.....

  • @tw3638
    @tw3638 2 года назад

    Bro blessed the homie with this fye explanation

  • @huy906
    @huy906 3 года назад +1

    I suggest you do BFS and DFS algorithms because most people find it difficult to mess with, in my perspective, I know it's kinda related to recursion but this is on a whole next level
    .
    .
    .
    with hamilton or Dijkstra as well, thank you and have a good day

  • @priyansshraj
    @priyansshraj 3 года назад

    You presentation in awesome "bro" 😃😄
    You are great. 🙌🙌

  • @chadsmith71
    @chadsmith71 Год назад

    You had me at Skyrim... what an amazing game (and soundtrack).

  • @rcs368
    @rcs368 3 года назад

    Bro, I think we have a lot in common!
    We both love that funny number...
    public THC (Strain strain)
    {
    while ( strain >=0)
    strain.smoke;
    strain--;
    Return THC;
    }
    Love your vids Bro found you coming from C# background, needing to learn java

  • @brandonkruger9040
    @brandonkruger9040 3 года назад

    Shot bro this video's timing is perfect as my exam will include data structures and algorithms. Cheers!

  • @Jitoro5
    @Jitoro5 Год назад

    Amazing! thanks for sharing your knowledge with all of us.

  • @joseoterol
    @joseoterol Год назад

    Thanks mate, I love your videos, they are really helpful

  • @igoerche
    @igoerche Год назад

    Great Content, thanks! Gladly more of it!

  • @darshanshah9152
    @darshanshah9152 10 месяцев назад

    Beautifully explained

  • @equinox-h9v
    @equinox-h9v 3 года назад

    oh man, this video was absolute gold!
    thanks bro

  • @JessicaIdike
    @JessicaIdike Год назад

    i cant believe, im just finding out about you, omggg next semester will definitely go smoothly

  • @murilosilvestre7736
    @murilosilvestre7736 3 года назад

    love that, please keep this serie of videos of DS and A

  • @iRandroid
    @iRandroid 3 года назад +1

    Thank bro ❤️ your videos are awesome, they are not just educational, it's also fun ❤️❤️

  • @maksimmakarov9541
    @maksimmakarov9541 Год назад

    thx sir. very good explanation with videogames :))

  • @aaf2011
    @aaf2011 2 года назад

    thank you very much , this tutorial is very inspirational and useful. now i get it so easy.

  • @shakirvlog9584
    @shakirvlog9584 3 года назад

    Broo ur Code Is Clean And Simple And I loved it :)

  • @adolfochafardett324
    @adolfochafardett324 Год назад

    Really interesting man, Its very helpful knows about the differents DS&A
    Thank you (y)

  • @mikeba3809
    @mikeba3809 10 месяцев назад

    I think the biggest thing holding the videos in the playlist back is that you are demonstrating the concepts using Java.

  • @VIPERCAT58
    @VIPERCAT58 Год назад

    Wow this video awnsered quite a few questions i had about stacks.

  • @tatata70
    @tatata70 Месяц назад

    random comment down below.
    but love your videos theyre incredibly easy and helps a lot, tyyy

  • @virendramali1754
    @virendramali1754 Год назад

    Thanks for DSA in Java, love from India❤

  • @mindreader860
    @mindreader860 3 года назад

    Love you Bro❤️😍
    From Egypt ✌️

  • @patrickorihuela91
    @patrickorihuela91 2 года назад

    This guy is next level.

  • @prayushgiri6515
    @prayushgiri6515 2 года назад

    great vid man thank you for all your hard work and fun way of describing things
    see you soon in another bro code vid!

  • @satyam1543
    @satyam1543 2 года назад

    i really liked your way of explanation

  • @rohitawasthi9012
    @rohitawasthi9012 3 года назад

    You explain things very well. Maybe you can make a video on implementation of stack or an intermediate difficulty example of stack so we get a better understanding of how to implement it in various scenarios.

  • @NK_Kolkata
    @NK_Kolkata 3 года назад

    I just started! Wish me luck 🤞

  • @dr.jones117
    @dr.jones117 5 месяцев назад +2

    Ah yes, he is a cultured gamer.

  • @zanetorserwaah8263
    @zanetorserwaah8263 2 года назад

    Good video and I love your approach

  • @anxiousdev555
    @anxiousdev555 Год назад

    Excellent Tutorial!

  • @ysfzctn
    @ysfzctn 11 месяцев назад

    Really helpful and convenient.

  • @caiosiqueira6138
    @caiosiqueira6138 3 года назад

    You're helping me a lot, thanks!

  • @myluong1533
    @myluong1533 3 года назад

    hey your coding videos rock thank you so much!!

  • @charlenebowman9112
    @charlenebowman9112 Год назад

    New Subbie!! This is great much better than the dry textbooks. I'll be using your playlists😃 for this class and my next one.

  • @jahidwarren6819
    @jahidwarren6819 4 месяца назад

    You are awesone Sir!