1,705 views
2 2 votes
Consider a stack and we wish to perform an operation StackDelete() in which we wish to delete all the elements of the stack .What is the worst case time complexity of doing this if stack is implemented:

1) Using an array

2)Using a Linked list

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
2 2 answers
529
529 views
2 2 votes
2 2 answers
2.4k
2.4k views
Gurdeep Saini asked Jan 2, 2019
2,395 views
true/false ?) if stack is implemented as a array,all operation push ,pop ,is emptystack(),delete stack() can be performed in constant time.)if stack is implemented as a l...
1 1 vote
2 2 answers
1.5k
1.5k views
Shamim Ahmed asked Dec 11, 2018
1,458 views
Every recursive program uses strictly more stack space compared to its iterative equivalent.This statement is false. Please explain with examples
2 2 votes
0 0 answers
844
844 views
CHïntän ÞäTël asked Dec 7, 2018
844 views
I THING THERE IS MISTAKE BECAUSE BRACKET ARE CLOSING AFTER ELEMENT E SO ALL OPERATORS HOULD BE POPED AND AND ACCORDING TO ME ANWER SHOLD BE 2…TRY AND CORRECT IF I M WRON...