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.
Template literals FTW
Very clever
If one has a linked list with tens of thousands of records in Javascript, I think that's likely a problem bigger problem than this function blowing out the stack.
Though, I am disappointed to learn that most browsers haven't implemented tail recursion optimization, even though it was in the ES2015 spec nearly 10 years ago. It's such a boilerplate program optimization, I'd assumed it would have happened by now. Go Safari, I guess.
That's clever, but it seems can't handle long orders -- stack overflow should happend due to recursion. That's why I won't vote 'Best Practices' but 'Clever'. Anyway, this is clean and pretty fine!
I believe it is better to change 'i' into '_' since 'i' is not used after again.
YOU ARE π₯π₯
impresive
total = 58 ? π€£π
nice
did the same, so neat!
Well, I think that's wrong: the natural incstinct as a programmer is (or should be) to made the code clear and that includes variables that should be readable, consistent vs the code and logical so others (or our future ourselves) will know what the heck was a variable for. Obviously not in a short kata nor in some conditional/bucle sentences but in long programs, right?
How did you do that bruh in a single line!
i like this logic, bravo man
I'm still new to slicing in python. This solution has a couple great examples. Thank you. I appreciate it.
No, it will return 0.
Loading more items...