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

Stack using Queue in C #2

Open
Kanai2003 opened this issue Sep 30, 2022 · 12 comments
Open

Stack using Queue in C #2

Kanai2003 opened this issue Sep 30, 2022 · 12 comments
Assignees
Labels
C coding in C language good first issue Good for newcomers hacktoberfest facktoberfest contribution hacktoberfest2022 9th hacktoberfest hacktoberfest-accepted accepted PR in hacktoberfest open-source open source contribution

Comments

@Kanai2003
Copy link
Owner

Kanai2003 commented Sep 30, 2022

Write code in C to implement a Stack using Queue

Fundamentals:

  • Queue is a data structure, which uses the concept of First in last out, or Last in First out.

Create Functions:

  • push() -> adds new element at the top of the stack
    • when the Stack becomes full -> "Stack OverFlow !!!"
    • takes input of new element from user
  • pop() -> removes the element at the top of the stack
    • when the Stack becomes empty -> "Stack UnderFlow !!!"
  • peek() -> display the top most element in the stack
    • when the stack is empty -> "Stack overflow"
  • display() -> display/print the stack
    • preview : "[5, 4, 3, 2, 1]"
    • when the stack is empty -> "NULL"

Rules:

@Kanai2003 Kanai2003 added good first issue Good for newcomers hacktoberfest facktoberfest contribution C coding in C language hacktoberfest2022 9th hacktoberfest hacktoberfest-accepted accepted PR in hacktoberfest open-source open source contribution labels Sep 30, 2022
@Davshiv20
Copy link

Hello, this is my first time participating in the hacktoberfest. I would like your approval for working on this issue

@Kanai2003
Copy link
Owner Author

Sure, I'm assigning you.
complete within 24 hrs.

@Kanai2003 Kanai2003 assigned Kanai2003 and Davshiv20 and unassigned Kanai2003 Sep 30, 2022
@Yash-Goyal007
Copy link
Contributor

Hello, can you assign it to me also as this is also my first time in hacktoberfest and I will try my best to contribute to your repository.

@Kanai2003
Copy link
Owner Author

I have already assigned it to someone.
I am creating a new issue, so stay connected

@ritamchakrabortty
Copy link

I want to contribute in this project
please assign me!

@Kanai2003
Copy link
Owner Author

Okey

@Faizan96322
Copy link

hello, I would like to contribute to this, can u assign this issue to me if @ritamchakrabortty is not working on it!

@Kanai2003
Copy link
Owner Author

ok

@driptanil
Copy link

Please assign me this Issue

@Kanai2003
Copy link
Owner Author

Okay

@Kabir1302
Copy link

please assign this to me.

@Kanai2003
Copy link
Owner Author

Okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C coding in C language good first issue Good for newcomers hacktoberfest facktoberfest contribution hacktoberfest2022 9th hacktoberfest hacktoberfest-accepted accepted PR in hacktoberfest open-source open source contribution
Projects
None yet
Development

No branches or pull requests

7 participants