MCPcopy 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

topoSortMethod · 0.80
TopologicalBfsMethod · 0.80
solveKnapsackMethod · 0.80
kLargestMethod · 0.80
bfsMethod · 0.80
primsMethod · 0.80
bipartiteFunction · 0.80
bfsFunction · 0.80
mainFunction · 0.80
bfsFunction · 0.80
dijsktraSSSpMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected