400 views
1 votes
1 votes

Consider the following statements:

S1 : Implementation of stack using queue, deletion of second element from top of stack time complexity Ο(n), when insertion take Ο(1) time.
S2 : In implementation of queue using stack, deletion of second element from front take Ο(1) time, when insertion take Ο(n) time.which one of the true?

please explain s2 if anyone finds it true.

Please log in or register to answer this question.

No related questions found