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