1,674 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
517
517 views
2 2 votes
2 2 answers
2.4k
2.4k views
Gurdeep Saini asked Jan 2, 2019
2,360 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.4k
1.4k views
Shamim Ahmed asked Dec 11, 2018
1,415 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
835
835 views
CHïntän ÞäTël asked Dec 7, 2018
835 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...