Skip to content

unoms/min-heap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Min Heap in C#

class Heap represents a min heap data structure.

Methods:

  • Add method is for adding a new element to the heap
  • GetSortedArray method implements heapsort and it returns a sorted array of numbers. Time complexity is O(N log N)
  • RemoveMin() - removes the min element and returns it
  • GetMin method - returns a min element with time complexity - O(1)

About

Min Heap data structure in C#

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages