December 10, 2022

Mathematical Notation in Data Structure

Mathematical Notation in Data Structure – First of all we will consider various types of notations for writing mathematical expressions. there is the following set of operations. Symbol Used Operation Performed Precedence ^ (Exponention) Power Highest * (Asterisk) Multiplication Next Highest / (Slash) Division Next Highest + (Plus) Addition Lowest – (Hyphen) Subtraction Lowest Note […]

December 10, 2022

Operations on Stack

Operations on stacks: The following operations are performed on stacks. Creating an empty stack PUSH (STACK. ITEM) – to push element ITEM onto stack STACK POP (STACK) to access and remove the top element of the stack STACK PEEK (STACK) to access the top element of the stack STACK without removing the top element from […]