Gauss is turning in his grave BUT it works.
I didn't want to feel cheesy by googling "pyramid of odd numbers" and being given a solution, but after one hour of struggle and coming to a different solution... This is borderline insulting.
And here I am, slicing up the array like a madman with a rusty cleaver...
This is clearly sorcery
Loading collection data...
Gauss is turning in his grave BUT it works.
I didn't want to feel cheesy by googling "pyramid of odd numbers" and being given a solution, but after one hour of struggle and coming to a different solution... This is borderline insulting.
And here I am, slicing up the array like a madman with a rusty cleaver...
This is clearly sorcery