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.
.repeat
also depends onn
so time complexity is O(nlogn)Same like mine
Very well done, this is clever.
How did you figure out the equation you used, what was your process?
And just O(n)
sooo short
didn't new about hte repeat function *-- * awesome
just... how?
definitly better than my solution, I'm still new at this, I wish i could think these kind of solutions
my solution wasn't quite as elegant as this one, but I had some shared elements. I fiddled with some paper drawings of diamonds and counted spaces, asterisks, rows, etc. to help me identify patterns in the relationships between numbers.
How this guy come up with the maths in this challenge?
he/she should have some magic 😂.
This comment is hidden because it contains spoiler information about the solution
I like this one. Beats my 29 line, 6 for-loop solution.
Very good and simple solution! It is not clear why this is not popular. Thanks!