Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Priority-queue/Wren/priority-queue.wren
Normal file
12
Task/Priority-queue/Wren/priority-queue.wren
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import "/queue" for PriorityQueue
|
||||
|
||||
var tasks = PriorityQueue.new()
|
||||
tasks.push("Clear drains", 3)
|
||||
tasks.push("Feed cat", 4)
|
||||
tasks.push("Make tea", 5)
|
||||
tasks.push("Solve RC tasks", 1)
|
||||
tasks.push("Tax return", 2)
|
||||
while (!tasks.isEmpty) {
|
||||
var t = tasks.pop()
|
||||
System.print(t)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue