in DS recategorized by
875 views
1 vote
1 vote

The minimum number of stacks needed to implement a queue is

  1. $3$
  2. $1$
  3. $2$
  4. $4$
in DS recategorized by
by
875 views

1 Answer

3 votes
3 votes

two.....option C  ... ...

1. insert operation...push(s1)

2.delete operation ..pop(s1) -> push(s2) till get empty then pop(s2) ...

Answer:

Related questions