Suppose we want to implement one stack using a queue. We have to define these methods for the stack.

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements