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 two queues #56

Open
Chaitralikore opened this issue Oct 25, 2023 · 2 comments
Open

Stack using two queues #56

Chaitralikore opened this issue Oct 25, 2023 · 2 comments

Comments

@Chaitralikore
Copy link

Implement a Stack using two queues q1 and q2.

Example 1:

Input:
push(2)
push(3)
pop()
push(4)
pop()
Output: 3 4
Explanation:
push(2) the stack will be {2}
push(3) the stack will be {2 3}
pop() poped element will be 3 the
stack will be {2}
push(4) the stack will be {2 4}
pop() poped element will be 4

@Gargee07
Copy link
Contributor

Gargee07 commented Oct 26, 2023

Hello, I would like to work on this issue. Please assign it to me.
Name: Gargee Patil
C No. : UCE2022608
SY Comp

@ManasiGDeshmukh
Copy link
Contributor

@Gargee07 Happy Coding!!

Gargee07 added a commit to Gargee07/CompetitiveProgramming-HacktoberFest23 that referenced this issue Oct 26, 2023
Programming Language used : Java
Implemented Push operation costly approach
Gargee07 added a commit to Gargee07/CompetitiveProgramming-HacktoberFest23 that referenced this issue Oct 26, 2023
ManasiGDeshmukh added a commit that referenced this issue Oct 31, 2023
…s-Code

Solution to Issue #56 Stack using two queues
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