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.
Good to know this method exists!
Using algebraic progression is cool!
This is why math is important for programming!
writing loops only to realise could've done just simple maths
Whoop. Genius
Gauss would be proud! What a code.
I even wrote comments in both Chinese and English for my code...
nice choose
This comment is hidden because it contains spoiler information about the solution
only 1 line? dude...
Wow! I've been racking my head for 3 hours on how to build logic, and here is a solution in 1 line! That's what ignorance of the basics of programming and language means.
While loops be damned!
Is this case sensitive? Would this return false if str ends with ending but ending was input in a different case than it appears in str?
Beautiful solution!
Congrats!
n
chooses0
expects[]
, but this is blatantly incorrect (nC0 = 1
after all):[]
is a possible choice, so it should be[[]]
.Loading more items...