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.
Approved by someone
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
How does the solution have to call a more complicated function? sum() is not more complicated than your solution--it eventually resolves to a while loop that simply loops over the iterable, accumulating the sum along the way, and then returns it. Your solution, on the other hand, recursively calls itself n-1 times, setting up a new stack frame each time, and consuming n frames on the stack, which is resource-intensive in both time and space. Your solution isn't even tail recursive, so tail call optimization cannot be used to reduce these costs.
not seem to be a good answer ,(although short)as it has to recall a more complicat function which takes more resource
Can someone please explain this simplistic format for essentially a case function?
Is it just the true condition is set with "wallLength % pixelSize == 0" and else would be false?
Great! One quick question, is there any processing benifits over string's slice or substring method?
'alr approved some time ago'
'alr approved some time ago'
This will fail on empty lists. The second case can be omitted if the case for empty lists is added.
The original kata neither. I don't think this is an issue
Reading the wiki
I published a fork with the new description, please check and approve both solutions
Thks!!!
It'a all good, hope it works :D
Hi!
Thanks for try, I'm going to unpublish the translation and try to remake it.
Sorry for the inconvenience
Still having issues :(
You're description from earlier matched my updated description so idk what's wrong :(
Loading more items...