Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lakhankumawat/LearnCPP
/ top
Method
top
S-Stack/StacksUsingQueue.cpp:48–54 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
46
}
47
48
int top(){
49
if(q1.empty()){
50
cout <<
"Stack is empty!"
<< endl;
51
return -1;
52
}
53
return q1.front();
54
}
55
56
int size(){
57
if(q1.empty()){
Callers
15
topoSort
Method · 0.45
huffmancode
Function · 0.45
min_computation
Function · 0.45
kLargest
Method · 0.45
cost
Function · 0.45
prims
Method · 0.45
isPalindrome
Function · 0.45
main
Function · 0.45
main
Function · 0.45
main
Function · 0.45
reverseQueueWithoutRecursion
Function · 0.45
dequeue
Method · 0.45
Calls
1
empty
Method · 0.80
Tested by
no test coverage detected