I left off the comma zero and preloaded the zero into the otherwise array, while ES6 had unpacking/destructuring arrays in mind and prior versions of javascript not so much--so I had unpacking/destructuring as a mental model at the time I wrote my solution. Surprised it isn't more common yet.

You don't need to know math, you just need a pencil and a piece of paper to figure it out. Just by counting all sums in the example triangle you can see that it's 1, 8, 27, 64, 125. At this moment it becomes pretty obvious what solution is

wow, incredible

you are not alone

I left off the comma zero and preloaded the zero into the otherwise array, while ES6 had unpacking/destructuring arrays in mind and prior versions of javascript not so much--so I had unpacking/destructuring as a mental model at the time I wrote my solution. Surprised it isn't more common yet.

How would you approach this with ES6?

You don't need to know math, you just need a pencil and a piece of paper to figure it out. Just by counting all sums in the example triangle you can see that it's 1, 8, 27, 64, 125. At this moment it becomes pretty obvious what solution is

I feel very stupid after seeing this solution loxl

Lol, never thought about it that way

Exact and description says:

`-`

is not a digit.This comment is hidden because it contains spoiler information about the solution

Well I never figured that out but I did manage to figure out a formula for the first element.

I was stuck for months no kidding

I know the test cases don't cover it, but what if at least one of them was 0? ;-)

After spending too much time on one kata (longer than I care to admit) i figured pen and paper are sometimes good.

See the comment in my solution

Shortness === cleverness ))

Oh you've got yourself good company I was stuck for 3 months lol

I'm so dumb lol never remember my maths

## Loading more items...