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.
wat
it's to solve the "No margin" situations:
if you leave it just as "margin" it gives you an error on the first 3 examples, in which there is no margin.
putting it as a keyword argument prevents that error by making the "default value" of margin = 0
it's also 0 because "abs(a-b) can never be negative"
-> by writing this comment I realized it could be better to put "margin = -1" to prevent the case of "abs(a-b) == 0" that would result in an error.
I completely forget the excistance of rfind :c
gj
it always amazes me how the hell you can fit all this in one line, python is amazing, and also hell
the smile at the end is not a happy smile
such a traditional way, amazing
what?
This comment is hidden because it contains spoiler information about the solution