MCPcopy Create free account
hub / github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA / top

Method top

11. Stack/Stack Using Array.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42 }
43 int top()
44 {
45 if(this->size == 0)
46 {
47 cout<<"The Stack is Empty"<<endl;
48 return -1;
49 }
50 else
51 {
52 int x = this->a[0] ;
53 return x ;
54 }
55 }
56 void pop()
57 {
58 if(this->size == 0)

Callers 15

HuffmanCodesFunction · 0.45
mainFunction · 0.45
zigZagTraversalMethod · 0.45
printMedianFunction · 0.45
topKFrequentMethod · 0.45
mainFunction · 0.45
topKFrequentMethod · 0.45
mainFunction · 0.45
DijkstraFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected