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.
It's short, but it's pretty slow. The ort fonction has a complexity of O(NlogN), where as you can resolve this is O(N) just by going through the list once and comparing elements two by two.
It doesnt work for '1234\n' (says True). Will have to use \A and \Z, not ^ and $
thank you very much. I had no prior familiarty with regex and tbh I'm still a total noob in this whole programming think. thank you for the effort tho. It was really helpful and informative.
This comment is hidden because it contains spoiler information about the solution
I don't get it at all
damn regexers always shining through everything ;D
Cool, two good solutions for this problem. Thanks guys!
you mean like this?
Like this:
[title](https://www.url.com)
-- markdown syntaxawesome, just found it in the documentation also
https://docs.python.org/2/library/re.html#raw-string-notation
no idea how you did that cool link stuff
raw string
noob here, what does the r in the beginning stand for?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
why would this not match "00000000". Its supposed to match string that start and end with a four or six digit number right? I don't get how it would match strings having length exactly equal to 4 or 6
Yeah, python re right now apparently matches the newline with $ and doesn't reject. I had to add to this solution a special condition to return False if there was a newline in the pin, kind of an ugly hack.
Loading more items...