The post discusses Java Stack operations, specifically focusing on checking balanced parentheses using a custom Stack implementation with a Linked List. It provides a code snippet that outlines push, pop, and peek methods, along with a main function demonstrating how to assess balanced brackets in a given string, including performance details.
stack implementation in java
Java Stack Implementation using Linked List
Java Stack Implementation using Linked List: In the last post, we learned Java Stack Implementation using Array. Here is the post that explains the implementation of the most useful data structure i.e. Stack using Linked List. First of all, we need to know what Stack is and what is its basic operations. So, let’s know about Stack. Stack: A Stack is an abstract data type that follows a certain principle/rule for its set of operations i.e. insertion, deletion, search, etc. The […]
Java Stack Implementation using Array
Java Stack Implementation using Array: Here is the post which explains the implementation of the most useful data structure i.e. Stack using Array. First of all, we need to know what actually Stack is and what is its basic operations? So, let’s know about Stack. Stack: A Stack is an abstract data type that follows a certain principle/rule for its set of operations i.e. insertion, deletion, search, etc. The principle followed by the stack is commonly known as LIFO (Last In First […]