Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lakhankumawat/LearnCPP
/ empty
Method
empty
Q-Queue/QueueUsingStacks.cpp:37–43 ·
view source on GitHub ↗
RETURNS TRUE IF BOTH STACKS ARE EMPTY
Source
from the content-addressed store, hash-verified
35
36
// RETURNS TRUE IF BOTH STACKS ARE EMPTY
37
bool empty(){
38
if(s1.empty() && s2.empty()){
39
return true;
40
}
41
else
42
return false;
43
}
44
};
45
46
/*
Callers
15
topoSort
Method · 0.80
TopologicalBfs
Method · 0.80
solveKnapsack
Method · 0.80
kLargest
Method · 0.80
bfs
Method · 0.80
prims
Method · 0.80
bipartite
Function · 0.80
bfs
Function · 0.80
main
Function · 0.80
bfs
Function · 0.80
dijsktraSSSp
Method · 0.80
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected