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.
i agree, but they can also make you familiar with built in functions, specially beginners like me, i love getting to know the bif hands-on!
Also in a coding interview where you are applying for a specific language, knowledge of the built in functions is key to success.
You bring the lengths of lists to my city's steps. You insult my code. You threaten my people with slavery and death!
This is bad code! This is madness!!
Madness..? THIS..! IS..! insert-troll-face-here
couldn't agree more, i'm sick of people voting best practice just random stuff, the voting mechanism should be changed
Don't. The code should be not only as concice as possible, it should be readable and obvious. Your solution is better.
I second this.
People should stop voting random stuff as best practice just becouse the code is short and nice. There's the 'clever' button for that.
Best practice is something else.
That was my thought, maybe this is just an attempt to practice looking things up? This function is so useless haha
i don't see any reason to use built in funcions in these kind of exercises, i believe those are meant to practice, to understand how things work, taking these shortcuts doens't teach anything
viewing solutions is depressing....
This comment is hidden because it contains spoiler information about the solution