Kali Baranwalkalibaranwal.hashnode.dev·17 hours agoSTACKS in C++WHAT IS STACK? It is a linear data structure and also an abstract data type ,where we can do only operation in a specific manner. It works on the LIFO (last in first out) or FILO (first in last out) system. LIFO means the elements which is inserted l...Discuss#StackDataStructure
Aditya Vaasudev Badityavaasudevb.hashnode.dev·May 10, 2024Stacks 101: A Beginner's OverviewIntroduction Whether it's items in a store or books in a library, once they become more than handful, people naturally start tidying things up by stacking them. When man started programming data, stack was one of the first structures that he thought ...Discuss·1 likeStacks
Md.Naimur Rahman (Navil)navilbyte.hashnode.dev·Mar 15, 2024Data Structure & Algorithm lDiscuss·1 like·408 readsUIU BSCSE CoursesDsa 1
Heisenberg Pandeyheisenbergdevblogs.hashnode.dev·Dec 9, 2023StacksInside This blog. Definition Operations Implementation in c++ Implementation in Python Implementation in Javascript Definition stack is a linear data type. Operations push() pop() isEmpty() isFull() peek() size() Implementation in C...Heisenberg Pandey and 1 other are discussing this2 people are discussing thisDiscuss·20 likes#StackDataStructure
Abdulrahman badamasideadeazy.hashnode.dev·Nov 6, 2023Stack data structure in JavaScriptA data structure is a way to store and use data efficiently. Different programming languages have different data structures. It's possible to implement data structures in different ways. In this article, I'll be walking you through how to implement t...Discuss·3 likes·49 readsJavaScript
Srikanth Anantharamblog.srikanth.one·Oct 6, 2023(A case for) Creating a stack-allocated Stack container in C++I've always looked inside the C++ STL and wondered why the library provided stack container is not allocated on the stack section but is actually allocated on the heap. A container which is allocated on stack would be handy in embedded systems where ...Discuss·391 readsC++
Saravana Sai saravanasai.hashnode.dev·Aug 6, 2023Real-Life Applications of Stack Data StructureIntroduction Hi, Folks. In this article blog, we will explore the Stack data structure concept, and its underlying mechanisms, and understand how it works. Moreover, we will dive into some practical examples to illustrate its applications in everyday...Discuss2Articles1Week
Laiba Razi Khanlaiba.hashnode.dev·Jun 10, 2023Notes- ADT and StackThe use of a circular linked list simplifies the solution by providing a straightforward implementation. By utilizing the methods of the CList class, the code becomes concise and easy to understand. In contrast, using an array to solve the problem wo...DiscussC++#StackDataStructure
kinikukiniku.hashnode.dev·May 27, 2023C: Multiple StacksIntroduction 所謂的多個堆疊,是指在一個陣列裡實現K個堆疊,如下方圖片裡,3個堆疊要平分陣列裡的位址 要實現多個堆疊有兩個方法可以實現 Simple method:將陣列劃分為 n/k Efficient method:節省空間 Implementation Simple method 結構定義 push() 加入時要先判斷該堆疊是否已經到下一個堆疊的bottom了 pop() 刪除時只要判斷同一個堆疊是否相同就好,然後再把該堆疊的top遞減 完整的程式碼 #incl...Discuss·37 reads#StackDataStructure
kinikukiniku.hashnode.dev·May 20, 2023C: Stack Problems and Queue ProblemsCheck Balanced parentheses using Stack hint當遇到左括號的話就push進堆疊裡,然後遇到右括號時,會跟堆疊裡top指標變數所指向的節點去比較,如果是相對應的左括號,就會把左括號pop出去solutionCheck balanced parentheses using Stack - Kalkicode Evaluate postfix expression hint當遇到的數字時就push進堆疊裡,而遇到運算子時,就把堆疊裡的兩個節點pop...Discuss·29 reads#StackDataStructure