The queue data structure is to be realized by using stack. The number of stacks needed would be:
2 stacks
1 stack
4 stacks
It cannot be implemented
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