Learn Stack data structures in 10 minutes 📚
Вставка
- Опубліковано 15 вер 2024
- stack data structure tutorial example explained
#stack #data #structure
// *******************************************************
// 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)
// *******************************************************
music credits 🎼 :
===========================================================
Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
Creative Commons - Attribution-ShareAlike 3.0 Unported- CC BY-SA 3.0
Free Download / Stream: bit.ly/2JnDfCE
Music promoted by Audio Library • Up In My Jam (All Of A...
===========================================================
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);
}
}
Please create all of lessons related to data structure and algoritms
Great video can you also do a series on problem solving, programming problems.love the real life examples dope
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");
}
}
}
Is there a video where you explain how the methods work?
Xxx
Hopefully these next 12 hours will be the mark of my start of years of programming and not me just giving up mid way.
Did you complete what you have started?
@@162sujiths4 we are asking the same question on the same day lol
Do you know if this is included in the 12 hours one ?
@@162sujiths4 No :) I completely gave up on programming as a career
@@yasminemokraoui3855 I do not know/remember anymore.
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.
Broski I love your videos, can't wait to watch more videos about Data Structures and Algorithms!
thanks for watching!
You're amazing. Every video I find explains the data structure, but fail to provide a coding example. You are a true Bro.
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👍.
You don't know how much I need DSA!!
Thanks for these and please don't stop!
Can't wait for it to complete!!!
Well bro data structure and algorithms tutorials are finally there so excited for these tutorials.........
This series of DSA helps so many programming aspirants.Thanks BRO for this wonderful tutorial..
You're welcome! Thanks for watching!
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.
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.
I love how you explain this as simple as possible with some joke😂 Thank you and don't stop making video like this!!!
best explanations on yt on data structs, not only the intuition but the code aswell, great job👌👏
Idk why but it took me so long to finally find someone to explain the methods and you made it look so easy
My bro accepted the request of DSA 👊 I'm grateful to you bro ❤️ I'm very excited to learn DSA from you 🤯 Thank You 😁🙌
Bro, ILY. Data structures finally T_T
I'm waiting for another data structures & algo vids :)
The way you explained this made things so clear to me. Thank you!
This guy is way too underrated imo
This was better than all of my c/cpp data structure teachers combined. Thanks man
Your Videos are fantastic. You explain things very well and are very entertaining. Thanks for making my studies fun.
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!
Loved that at the end you explained where stacks are actually used.
best explanations on yt on data structs
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.
Formal and interesting at the same time, nice explanation!
Thank you, please make more algo videos. You are the best instructor I never had 💯
Best and easily understandable explanation of DSA concepts
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.
This is a random comment. Your videos are simple and easy to understand! Thank you!
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)
Hey Bro Code, your videos are amazing and explained the concept clearly with given the reality example. Really appreciated that!
i cant believe, im just finding out about you, omggg next semester will definitely go smoothly
example is the ultimate bro!!!
Theoretical explanation WITH visual support. Wel done!
tomorrow I got DSA internals it helped me at the last minute thank u so much @bro code 😊
good easily to grasp content for noobs, thank you!
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
Hey MeltDown! Thanks for the support!
Yep, it's been a heck of a ride! We'll hit that 1M mark eventually :)
@@BroCodez We'll hit 1M in no time.🍾
Dropping a comment down below. Really good explained. Nice video
Awesome channel Bro! Definitely the best programming channel I’ve found so far.
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..😊😊😊🙏
You are the best teacher. Thanks for your work.
you're teaching amazing bro... better than that old CS teacher ....
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
OMG !!! data structure made easy , you killed it bro .
Wonderful ❤️❤️❤️❤️ Hope you explain all course
Hello sir , can you make DSA in Python ?? Please !
Great explanation!! Grettings from Argentina!!
clear concise straightforward. appreciate it big time
I think I'll understand data structures and algorithms very well from your tutorials series very excited thank you Bro.....
Thank bro ❤️ your videos are awesome, they are not just educational, it's also fun ❤️❤️
This guy is next level.
Shot bro this video's timing is perfect as my exam will include data structures and algorithms. Cheers!
I think the biggest thing holding the videos in the playlist back is that you are demonstrating the concepts using Java.
I just started! Wish me luck 🤞
Best explanation of stack on UA-cam.. 😇
Love you from Pakistan 🇵🇰 I am waiting for this course please upload data structure and algorithm video daily
all in all, stack is last-in first-out. Push function is to add elements, pop function is to take elements from top and throw them anyway, peek function is to take elements from top but not erase elements in stack.
learning to program becomes very easy with you. Thank you. Always LIKE
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
Great content, you are explaining topics in very understandable way.
Beautifully explained
Helped me so much when my lecturer presecense sucks
You had me at Skyrim... what an amazing game (and soundtrack).
Can you please create all DSA videos rapidly , I just watch your stack video and I'm really amazed , you're doing great bro ✌️
Thanks for DSA in Java, love from India❤
Bro blessed the homie with this fye explanation
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.
Great Content, thanks! Gladly more of it!
Best content 👍🏻
Cant wait to see more videos under this subject keep the good work man much appreciation
Thanks for watching! I will try to release these weekly
Really interesting man, Its very helpful knows about the differents DS&A
Thank you (y)
Amazing! thanks for sharing your knowledge with all of us.
Love you BRO
el mejor tutorial en el mundo 🥰
I can't thank you enough bro!! Appreciate it ☺️
oh man, this video was absolute gold!
thanks bro
Wow this video awnsered quite a few questions i had about stacks.
thank you very much , this tutorial is very inspirational and useful. now i get it so easy.
thx sir. very good explanation with videogames :))
love that, please keep this serie of videos of DS and A
I will!
bro put more videos on data structure and algorithms it will be so helpful
Thanks mate, I love your videos, they are really helpful
Good 📹
You presentation in awesome "bro" 😃😄
You are great. 🙌🙌
New Subbie!! This is great much better than the dry textbooks. I'll be using your playlists😃 for this class and my next one.
X language >> assembly >> bytcode >> application
great vid man thank you for all your hard work and fun way of describing things
see you soon in another bro code vid!
You are awesone Sir!
Thank you bro, you explained stacks very well.
Thank you so much, I like the video games example, it really helped me to understand how Stack works clearly.
One question Bro:
I found many data structures tutorials on UA-cam that contain more than 30 videos, but I chose your tutorial because I like your way of explaining. Now I am wondering if this tutorial(your tutorial) covers the data structures fundamentals, or I should follow more tutorials.
i really liked your way of explanation
Awesome explanation at just the right speed
Can't wait for more videos
Wow. Finally found man with 0 hater.
See 0 dislikes on your video 😊
Excellent Tutorial!
Top level thumbnail
Really helpful and convenient.
I would like you to teach Jsp and servlet
I always study with your contents
From Japan
Thank you you nailed it teacher
You're helping me a lot, thanks!
this is a random comment!
and aaammm yes, this is a great video and serious keep it up!