MCPcopy 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

topoSortMethod · 0.45
huffmancodeFunction · 0.45
min_computationFunction · 0.45
kLargestMethod · 0.45
costFunction · 0.45
primsMethod · 0.45
isPalindromeFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
dequeueMethod · 0.45

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected