4. Connecting the dots — Big O and Stacks Data Structure

Example of stacks
LL and Stack

Steps for creating a Stack

Creating a node using Stack Data Structure
Output of the above code

Pushing an item to the top of the stack

Pushing the item from the top
Output of adding item to the stack
Adding an item to the top of the stack

Removing an item to the top of the stack

Popping an item off the stack
Output of removing the stack
Removing an item from the stack

Resources:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store