762 views
2 votes
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.

Related questions

2 votes
2 votes
2 answers
1
1 votes
1 votes
2 answers
2
Shamim Ahmed asked Dec 11, 2018
735 views
Every recursive program uses strictly more stack space compared to its iterative equivalent.This statement is false. Please explain with examples
2 votes
2 votes
0 answers
3
1 votes
1 votes
1 answer
4
radha gogia asked Jul 24, 2018
1,433 views
Suppose one character at a time comes as an input from a string of letters . There is an option either to 1) print the incoming letter or to 2) put the incoming letter on...