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.
This comment is hidden because it contains spoiler information about the solution
@coderman1018 not the right place but I don't have any other; I don't understand why you edited one of my kata. Your changes are useless and above all your new "title" was incorrect.
This comment is hidden because it contains spoiler information about the solution
The default sort is ascending. The minus makes the greater numbers smaller, e.g. 10 is greater than 5,
but -10 is less than -5. Minus naturally reverses the order of sort. Got it?
Don't feel bad about your if statement, this solution with an unnecessary dict creation is slower than your if block.
Thank you for bringing this out!
This comment is hidden because it contains spoiler information about the solution
It's taken a while for this to click, but now I totally understand it. Thank you very much!
This comment is hidden because it contains spoiler information about the solution
elegant and simple to understand - nice one!
I didn't know you could chain sub string slice with a reversal afterwards via seperate square brackets, I was getting caught up having it all in the same brackets, which was causing all kinds of fun :)
This comment is hidden because it contains spoiler information about the solution
👏
Sheesh that's a great solution. Well done 👍
yes, you're right, it stops checking the condition after AND. The topic is called 'short circuiting'.
This comment is hidden because it contains spoiler information about the solution
Loading more items...