Data structures stack vs queue3/2/2024 In a stack, the three fundamental operations are top, push, and pop. Similarly, if you grade another new paper and place it in the pile, it is now at the top of the pile. When you get up and look at those papers, the first one you will see is the last you finished grading. Imagine you are grading papers, every time you finish one you place the paper into a neat pile on your desk. The order of a stack is known as "LIFO", or the last item that goes in is the first item that comes out. Like the name implies, a stack is simply a stack of things In this structure, items can only be added or removed from the top. Here, I will briefly discuss the theory and applications of stacks, queues, sets, and maps implemented in C++. So why would you want to learn about data structures? Well, just as there are many tools that serve unique purposes in the construction of a house, there are various data structures that are useful in solving different kinds of problems in computer science. The course does an excellent job at transforming you from someone who knows how to code into someone who knows how to use computers to solve problems. For the past few months now, I have been following the old Stanford CS106B lectures available through YouTube. However, I lacked the theory necessary to be confident that I was writing the best code.Įnter my introduction to data structures. Sure I was learning to write code heck, I even got out of "tutorial hell" and was quickly building projects on my own. Recently, however, I have been faced with this lingering question: are my programs optimized for performance?Ĭuriosity has led me to dive deeper into some of the computer science fundamentals, something that I feel was missing from the previous stage of my learning. I love to code and this journey has allowed me to seamlessly integrate the technical and creative sides of my brain. I've been programming seriously now for about a year in that time I've brushed up on my python skills, completed a few YouTube courses on HTML/CSS, studied JavaScript, and built a few React apps.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |