0
Data structure
Printer queue with priority User enter username, password and priority then it will print the queue from highest to lowest priority with the username and password
1 Respuesta
+ 2
Pq=[]
For all inputs
Append [prio,un, pw] to pq
Sort pq descending
Iterate pq for output