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 works, but don't use re unless there's another way, ok?
Very clever solution. Good job guyssss
Nice code
Bravo. Best solution I have seen for this kata
That's the way!!
I think "base % factor = 0" is evaluated as statement, who returns either TRUE or FALSE on each row depending on the result with the values of that row
im kinda new to sql so someone correct me if i miss something
this is cool but i am strugglig to understand how it knows to state what is true and false with out declaring either. Is it because the query returns all the true results then returns all the remaining results which are false?
real python way
Avoid? No. Just use them with double backslash in RegExp constructor.
So, are you saying that we should avoid All the built-in character set such as
\d
,\w
,\s
, etc?\d
is not the only char set that have a backslash (escaped). How about other escaped characters that we can't construct manually such as word boundaries? (\b
&\B
) ?I posted an explanation of this solution to evarx78's comment. I hope it will help you too.
This comment is hidden because it contains spoiler information about the solution
Same for Javascript, but only if we use new RegExp(regString) constructor.
We must use \\d instead of \d. Or [0-9]. Or String.raw`\d`
Apparently it's advisable to not use /d if you can, since it may cause "escaping issues in some languages (like Java)."
(However much that's worth, just putting it out there)
what
Loading more items...