struct StaticArrayHeap(T,N)
Simple heap implemented on top of a StaticArray
Installation
Add this to your application's shard.yml
:
dependencies:
staticarrayheap:
github: teknomunk/cr-staticarrayheap
Usage
require "staticarrayheap"
q = StaticArrayHeap( Int32, 10 )
q.push(1)
q.push(10)
q.push(2)
3.times {
puts q.next
q.pop
}
Contributing
- Fork it (https://github.com/teknomunk/cr-staticarrayheap/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- teknomunk teknomunk - creator, maintainer