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.
nice recursion
I think they forget to write code for others to read. If
m
jogs their short term memory that's good enough apparentlyUsing this solution you should worry about negative values, so it might be worth also checking for that
i started solving this and immediately my mind started thinking recursion idk why.
agree, nowhere close to best practice but the approach to for loop is worth learning
whats the point of r if n is equal to r? why not just use n alone?
Thats some fine recursion
I agree this is nowhere close to best practice
why do people not use descriptive variable names
r declaration is redundant in the first lines
recursive invocation should be placed as a last operand in return to reach tail recursion
i can mark it as clever,cause it simple, the simpler the better, but this is not the best practice
This comment is hidden because it contains spoiler information about the solution
Brave!
simple and short.
Clever, but 'Best Practise'? Seriously?
Actually, it really may not compile due to project style violation rule like 'do not use single char names outside of lambdas'
(see lint)
Loading more items...