Skip to content

theChopix/functional_programming_minitask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

BuildHeap

Task was to make a haskell program (in time limit and without use of any external sources) implementing function 'buildHeap'.

Input

array of any type that satisfies (Eq a, Ord a) e.t. type that defines equality and inequality & is totally ordered

Output

max-heap data from given elements of array, displayed using indentations

Example

buildHeap([1, 2, 3, 4, 5])

------2
---4
------1
5
---3

Compilation (in terminal)

ghci heap.hs

About

exam task in haskell to implement max-heap structure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published