cr-staticarrayheap
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
Repository
cr-staticarrayheap
Owner
Statistic
- 0
- 0
- 0
- 1
- 0
- over 6 years ago
- October 31, 2018
License
MIT License
Links
Synced at
Sun, 18 May 2025 08:33:05 GMT
Languages