Open Chaitralikore opened 8 months ago
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
Hello, I would like to work on this issue. Please assign it to me. Name: Gargee Patil C No. : UCE2022608 SY Comp
@Gargee07 Happy Coding!!
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