I wrote a gcd function, and it of course collided with Prelude's, so I took it out. At no point did I stop and think that if Prelude defines a GCD function it stands to reason that it would provide an LCM function too.
You're really close! What's the formula for distance between two points?
This comment is hidden because it contains spoiler information about the solution
YO I just saw this since I'm not on here enough but this is GREAT!! I'm honored! TYSM
You forgot to use divBy 2 instead of flip (//) 2
flip (//) 2
Nicely done!! :)
ooh smart to use range. If you want to go point free you can flip the direction of composition
List.range 1 >> List.map insertElements
Thanks! With your explanation I solved it very quickly. Also did not know that there is so much theory about elipse in wikipedia ))
Sure: relevant wikipedia article section and the relevant image (transparent SVG so click through the first link to wikipedia).
I'll update the description if this becomes a stumbling block for more people.
It is hard to understand task.
How 2 circles can make ellipse? Some picture would be helpfull.
Tests Passed: 925 Failed: 97
When I draw failed tests on paper P does not go out of "ellipse"
i thought that too! mega confused until i realized we were manually changing the length property.. object lengths are undefined... when array.from coerced it into an arr it managed to extract the length property, i was mistakenly thinking length was somehow going all the way to 0 on its own haha
Because if the length is 5, why would the length be 6? That is not logical...
appreciate the reply! but if Array.from() converts the argument given to an array, why does it stop at [5,4,3,2,1] with 5 elements instead of [5,4,3,2,1,0] ?