Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
I'm getting timeout error. I've modified my code several times but i get the same errror
math. don't brute force
Thanks :)
Description shows you exactly how the pyramid is constructed. And as it states, N is the row of pyramid that you have to return (as sum of its elements). You can either create the pyramid yourself, or look for some pattern that would help you calculate the sum in more mathematical way. Or simply, skip it for now :P
Do I have to create my own list/array of the values? I noticed the values (n) aren't the actual values in the pyramid. So, how do you work with something that doesn't exist? It's pretty easy if the values are there, but this doesn't explain how you get the values. It just acts like they're already there.