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