The queue data structure is to be realized by using stack. The number of stacks needed would be:
2 stacks
4 stacks
It cannot be implemented
1 stack
Boost your performance with adaptive practice tests
Practice every concept in the syllabus
Compare your speed and accuracy with your peers
Download the app and practice on the go