Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA
/ main
Function
main
11. Stack/ArrayImplementStack.cpp:57–69 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
55
};
56
57
int main()
58
{
59
Stack s(5);
60
s.push(10);
61
s.push(20);
62
s.push(30);
63
cout<<s.pop()<<endl;
64
cout<<s.peek()<<endl;
65
s.push(15);
66
cout<<s.size()<<endl;
67
cout<<s.isempty();
68
69
}
Callers
nothing calls this directly
Calls
5
push
Method · 0.45
pop
Method · 0.45
peek
Method · 0.45
size
Method · 0.45
isempty
Method · 0.45
Tested by
no test coverage detected