Registry / utility / depq
library0.7rbrubygemsunverified

A Double-Ended Priority Queue library that supports insertion and deletion of elements with minimum and maximum priority, with tie-breaking by insertion order and priority updates.

gem install depq
INSTALL
IMPORT
SIG · DEPQ
D
depq
utilityrubyv0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Depq
require 'depq'

Create a double-ended priority queue and retrieve min and max elements

require 'depq' q = Depq.new q.push(3, 1) q.push(5, 2) puts q.min # => 3 puts q.max # => 5
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
depq — gem install depq · libregistry