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
I spend 10 minutes thinking hard and bro just does it in three lines...
Amazing. I will write 100 times "I will look for a closed-form solution" on the blackboard. On second thought however, your solution requires to iterate over the entire sequence to sum the elements, which is not the most efficient approach on average with very long sequences.
Try to be helpful mate. Thanks
nice one
could you f**k me tonight?)
Just google it and you will find out.
Why do i need to put '*' before args ?
It simply changes the tuple args into a string literal, meaning it contains all spaces and punctuation as well as brackets.
I'm not a fan of this solution though, it iterates through that whole (in worst case) literal ten times.
wtf here lives a legend.
Thank you!! I had not thought of this case while solving!
I will redo this again now with this in mind :)
Yes, without that variable, they could have done that in one line.
magnificient solution!
sequence is may more diff to type than t, lol
Pretty smart solution
Loading more items...