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.
Feck
well I wasnt sure that my reasoning was up there with the most praised code... nice =D
Explain what gives "" pls
I really dont understand((((
I feel silly now
I thought of this when I looked at kyu level again after having a timeout error. No way you need to use algos for this level.
timeout error + 8 kyu = there's a simple brutforce
Nice, 1 is truthy
You do not need to get to this level.
PEP 8 has a recommondation for only 79 characters per line.
Do not feel bad if you need multiple lines.
The multi liner with a propper For, add to list, return new list is not a bad solution either. Not even in terms of speed.
This comment is hidden because it contains spoiler information about the solution
anytime you want? i mean, idk what exactly the code means/does but i solved it the same way lol
Its something like retrun ( output, loop ) if you wanna return multiple stuff, and python just knows your x without you having to introduce her to it
This one should be BP.
Remember, you can use \d instead 0-9 and there is fullmatch() function, in this case fullmatch makes code more readeable, bc we have less regex code (which is not for reading, write-only code)
Bc If zero or more characters at the beginning of string match the regular expression pattern, return a corresponding match object. Return None if the string does not match the pattern; note that this is different from a zero-length match. So, u get a RE object or None, but we need a bool type as an answer.
You can read more here: https://docs.python.org/3/library/re.html
Wow
You shouldn't call dunder methods directly but use the proper API method instead.
Find the unnecessary space...
This comment is hidden because it contains spoiler information about the solution
Loading more items...