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.
GG
the same way i solved problem. which is faster? replace or repeat?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Points for being different, but this solution doesn't work because binary OR is not the same as ADD for all inputs. This shows the importance of good testing code. I assume it passed the testing that was available at the time.
I was writing exactly the same code except for the outer "()" but it could not pass, so weird!
This comment is hidden because it contains spoiler information about the solution
Thanks!
it means if no lost number return 0
Could someone explain the || 0 part please? If the left side of the || is undefined it returns the right side?!
Awww that Number to return 0 on a falsy value! Excellent idea.
genious! :D
This comment is hidden because it contains spoiler information about the solution
nice
your solution is quadratic
Loading more items...