Question

Which of the following scenarios is best suited for implementation using a stack data structure?

A Managing print jobs in a printer queue.
B Implementing the "undo" functionality in a text editor.
C Storing data packets in a network router for transmission.
D Processing tasks in a round-robin CPU scheduling algorithm.
Practice Next

Hey! Ask a query