MCPcopy 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

11public:
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

mainFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected