Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Stack using Linked List in C #8

Closed
driptanil opened this issue Sep 30, 2022 · 8 comments
Closed

Custom Stack using Linked List in C #8

driptanil opened this issue Sep 30, 2022 · 8 comments

Comments

@driptanil
Copy link
Owner

driptanil commented Sep 30, 2022

Rules:

Fundamentals:

  • Stack is a data structure, which uses the concept of Last in First out or First in Last Out

Use Concepts:

  • use structure (struct) to create a linked list

  • use dynamic memory allocation (malloc()) to initial a structure (struct)

  • create a menu using an infinite switch case which implements all the functions

      1. Push        2. Pop
      3. Peek        4. Exit 
    
  • display the linked list after all operations

Create functions:

  • push() - adds new element at the top of the stack

    • when the Stack becomes full -> "Stack OverFlow !!!"
    • takes an input of a new element from the user
  • pop() - removes the element at the top of the stack

  • peek() - displays the top most element in the stack

  • display() - prints stack

    • preview : "5 -> 4 -> 3 -> 2 -> 1 -> null"
    • when the stack is empty -> "Null"
@driptanil
Copy link
Owner Author

Sure

@driptanil
Copy link
Owner Author

I have assigned you this issue, start working on it

Enjoy ! 😁

@Abhinav-J05
Copy link

Hey! I would like to contribute in this, Please assign this to me.

@driptanil
Copy link
Owner Author

Sorry I have already assigned it to @NyanCyanide, if he doesn't create a pull request in 24 hours.

I will assign this to you, try other issues

@Abhinav-J05
Copy link

thank you

@driptanil
Copy link
Owner Author

@Abhinav-J05 I have added some more issues, try contributing to those issue

@Abhinav-J05
Copy link

@driptanil can you assign this to me now?

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

No branches or pull requests

3 participants
@driptanil @Abhinav-J05 and others