Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lakhankumawat/LearnCPP
/ pop
Method
pop
S-Stack/StacksUsingQueue.cpp:39–46 ·
view source on GitHub ↗
pop easy
Source
from the content-addressed store, hash-verified
37
38
//pop easy
39
void pop(){
40
if(q1.empty()){
41
cout <<
"Stack is empty!"
<< endl;
42
return ;
43
}
44
q1.pop();
45
N--;
46
}
47
48
int top(){
49
if(q1.empty()){
Callers
15
topoSort
Method · 0.45
TopologicalBfs
Method · 0.45
huffmancode
Function · 0.45
min_computation
Function · 0.45
kLargest
Method · 0.45
cost
Function · 0.45
bfs
Method · 0.45
prims
Method · 0.45
bipartite
Function · 0.45
bfs
Function · 0.45
isPalindrome
Function · 0.45
bfs
Function · 0.45
Calls
1
empty
Method · 0.80
Tested by
no test coverage detected