Complexity in stack operation by R4R Team

Time Complexity:

Create stack : O(n)
Traverse Stack : O(n)
Push operation : O(1)
Pop Operation : O(1)
Peek operation : O(1)
Seaching in Stack : O(n)

Leave a Comment:
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!