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.
Wow, really clean! Awesome!!
Nice suggestion!
Wow, I just learned from your code. Good stuff.
This comment is hidden because it contains spoiler information about the solution
Clever, way better than my solution
This comment is hidden because it contains spoiler information about the solution
Regex is overkill for anything.
If it's a very simple parse, like this, you'll get better performance and code that's easier to read by just writing it out imperatively. If it's a complicated parse, you'll be less likely to run into bugs, and have code that's easier to read, by using a proper parser DSL such as ANTLR. Regex isn't particularly good at either case, and its complexlity is extremely high. The "now you have two problems" joke exists for a reason.
Trim replaces the spaces only in the beginning or end of a string. It combines "TrimStart" and "TrimEnd".
I thought Trim erase all spaces!, Does this only trim the two sides?
Is regex an overkill for this one? Just asking because I'm not really familiar with regex.
This comment is hidden because it contains spoiler information about the solution
Honestly, i am totally lost.Could anyone explain the purpose of that for loop for me please.
i was wondering about using a LINQ ; but yeah Regex does the work