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.
Fwiw, I believe ToLowerInvariant should be preferred aswell, since ToLower is apparently slow for some reason. 6 years later, but still, maybe someone will read this ;)
you can just use int.Parse(string);
and return that instead of using "TryParse"
Unnecesary System import ;-)
This comment is hidden because it contains spoiler information about the solution
List...
I'm an idiot =(
description updated
saw this code after ive completed mine, and rialized, im a total n00b ...
This comment is hidden because it contains spoiler information about the solution
Just now saw your reply. Actually saved me in checking for cases the other day. Unfortunately saw this too late... <3
Why instantiate a new marine in the ctors?
Honestly the 0x20 is me just being terse. When this is compiled to IL code it converts the hex to an integer (32). So all we're really doing here is screening the characters that we know fall into the proper ascii range, and then bitwise and/or the character to switch the case (basically adding or removing 32, which is the distance between upper and lowercase chars).
This is faster than the built-in methods on Char, but this code also doesn't take culture into account, so it's probbaly not a totally fair comparison.
Done
Just change "Digitize(int n)" into "Digitize(long n)" and it should work...
I didn't submit the C# version. Not sure how to resolve this. I can't delete it.
Very interesting solution, explain please why you use 0x20? I don't understand how it works)
Loading more items...