Skip to content

Conversation

@Srisilpa
Copy link

Implemented Stack Data Structure using a Linked List in C.
This program supports the following operations:

push() → Insert element at the top

pop() → Remove the top element

peek() → Display top element

display() → Print all elements in the stack

  • Highlights:

Uses dynamic memory allocation (no fixed size)

Handles overflow and underflow gracefully

  • Time Complexity:

Push → O(1)

Pop → O(1)

Peek → O(1)

Display → O(n)

  • File Added

stack_using_linkedlist.c

  • Language

C Programming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant