Skip to content

bernardeli/longest-path-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

How to use

You must have haskell already installed:

$ ghci
Prelude> :load longestpath.hs
[1 of 1] Compiling Main             ( longestpath.hs, interpreted )
Ok, modules loaded: Main.
*Main> longestpath tree
[11,9,7,5,3,2,12,14,16,18,20]
*Main>

Instead of tree (which is an example), you can do your own tree and give it a try.

Ricardo Bernardelli

About

calculates the longest path from a given tree in haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published