Skip to main content

Command Palette

Search for a command to run...

How to get started with Stack Data Structure?

PART - 1

Published
1 min read
How to get started with Stack Data Structure?
S

An engineer with demonstrated working knowledge on Java, Spring boot and related echo system.

Hola,

When we thought of learning about a Data Structure or an Algorithm, We may get into confusion about how to start, isn't?

Here are the few points which you can try to get started with STACK data structure.

  1. What is Stack?

  2. Why we need it and how stacks are used?

  3. Learn about real time use cases of Stack.

  4. Learn about Stack operations like push(int val), pop(), isEmpty(), top(), size(), isFull(), etc.

  5. Understand about time and space complexities of each operation.

  6. Implement stack using static array (size is fixed).

  7. Implement stack using dynamic array (You can give a try on array doubling technic).

  8. Implement stack using Linked List.

PART 2 will be posted soon.

If you would like to receive notifications on my content, you can join in my telegram group Join In Telegram Group

You can follow me at LinkedIn

Gracias.

Daily DSA

Part 1 of 3

A place where you can find problems on different DSA topics daily.

Up next

Day 2 - Next Greater Element I

Data Structure: Stack