Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Priority-queue/Frink/priority-queue.frink
Normal file
10
Task/Priority-queue/Frink/priority-queue.frink
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
pq = newJava["java.util.PriorityQueue", new Comparator[byColumn[0]]]
|
||||
|
||||
pq.add[[3, "Clear Drains"]]
|
||||
pq.add[[4, "Feed cat"]]
|
||||
pq.add[[5, "Make tea"]]
|
||||
pq.add[[1, "Solve RC tasks"]]
|
||||
pq.add[[2, "Tax return"]]
|
||||
|
||||
while ! pq.isEmpty[]
|
||||
println[pq.poll[]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue