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.
Yes - it was me who was mixed up - thanks!
The instructions example:
s = "abcd\nefgh\nijkl\nmnop"
has 'n' and 'm' mixed, it seems to me
Ok I believe this is the XOR bitwise operator, used here to filter if either group has the character in question. This has been chosen over the standard '||' as it enforces one or the other but not both.
Does anyone know the meaning of ^ in this solution?
How does the use of Boolean only filter empty strings that evaluate as false and not strings that evaluate as true?