Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lakhankumawat/LearnCPP
/ size
Method
size
S-Stack/StacksUsingQueue.cpp:56–63 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
54
}
55
56
int size(){
57
if(q1.empty()){
58
cout <<
"Stack is empty!"
<< endl;
59
return -1;
60
}
61
else
62
return N;
63
}
64
};
65
66
//push easy, pop expensive
Callers
15
check
Function · 0.45
TopologicalBfs
Method · 0.45
minFallingPathSum
Function · 0.45
minCost
Function · 0.45
travllingSalesmanProblem
Function · 0.45
uniquePathsWithObstacles
Function · 0.45
solveKnapsack
Method · 0.45
printMinDelAndInsert
Function · 0.45
coinChange
Function · 0.45
huffmancode
Function · 0.45
min_computation
Function · 0.45
printKthDistinct
Function · 0.45
Calls
1
empty
Method · 0.80
Tested by
no test coverage detected