We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Functions and Fractals - Recursive Trees
Functions and Fractals - Recursive Trees
Sort by
recency
|
16 Discussions
|
Please Login in order to post a comment
Can be super concise in Haskell!
My Haskell solution.
It's a bit cheeky but the idea is straight-forward:
1) Find the tree stem roots 2) Add stem length at roots 3) Make branches at top of each root
Not elegant but it gets the job done.
My solution in scala. Because of restriction in not using local variables, some computations were repeated.
I gotta say, this person did a magnificently bad job of making it symmetrical
Nice challenge. My full solition with F# (recoursive, without local values):