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.
like O(n) time, right, space is O(sqrt(n)).
The ASCII values for 'a-z' are 97-122 (0b1100001-0b1111010), and 'A-Z' are 65-90 (0b1000001-0b1011010).
We only need the last 5 bits (0b11111 is 31) (since the first two bits are the same) to build our bitmask.
geez, so smart
Good Code.
wtf?
can u explain, interesting way, but looks like brainfuck, heh
Not really. In general you should always access the element by reference (i.e. " &x" if you need to modify it, or "const &x" if you don't), otherwise C++ must make a copy into the loop varible. HOWEVER, in the case of a built-in type like int, just getting a copy is (almost?) always just as efficient or more efficent that getting the elements address and then deref'ing it.
This comment is hidden because it contains spoiler information about the solution
pretty much the same thing as mine... not bad!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Can someone explain what is happening here? Glitch in the matrix?
Smart.
Nice. I didn't realize you could decompose strings like that.
Fixed in latest fork
Thanks, now I understand.
Loading more items...