Registry / utility / algorithms

algorithms

JSON →
library1.1.0rbrubygemsunverified

Provides implementations of common data structures and algorithms including heaps, priority queues, trees, and sorting.

gem install algorithms
INSTALL
IMPORT
SIG · ALGORITHMS
A
algorithms
utilityrubyv1.1.0
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.

Algorithms
require 'algorithms'

Create a max heap and retrieve the maximum element.

require 'algorithms' heap = Containers::MaxHeap.new([1, 3, 2]) heap.max # => 3
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
28
OpenAI (training)
1
Resources
algorithms — gem install algorithms · libregistry