Skip to content

teknomunk/cr-staticarrayheap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Fork it (https://github.com/teknomunk/cr-staticarrayheap/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

A heap implemented on top of a StaticArray

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published