Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lakhankumawat/LearnCPP
/ enqueue
Method
enqueue
Q-Queue/QueueUsingStacks.cpp:13–15 ·
view source on GitHub ↗
SIMPLY PUSH THE ELEMENT IN STACK1
Source
from the content-addressed store, hash-verified
11
public:
12
//SIMPLY PUSH THE ELEMENT IN STACK1
13
void enqueue(int x){
14
s1.push(x);
15
}
16
17
int dequeue(){
18
if(s1.empty() && s2.empty()){
Callers
1
main
Function · 0.80
Calls
1
push
Method · 0.45
Tested by
no test coverage detected