| sorting | R Documentation |
Print the sorting order of a priority queue.
sorting(x)
x |
An CppPriorityQueue object. |
Returns "ascending" or "descending".
cpp_priority_queue, sort.
q <- cpp_priority_queue(4:6)
sorting(q)
# [1] "descending"
q <- cpp_priority_queue(4:6, "ascending")
sorting(q)
# [1] "ascending"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.