Data structure | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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

6th Jan 2021, 10:53 PM
Jamal Chokr
Jamal Chokr - avatar
1 Antwort
+ 2
Pq=[] For all inputs Append [prio,un, pw] to pq Sort pq descending Iterate pq for output
11th Jan 2021, 7:35 AM
Oma Falk
Oma Falk - avatar