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.
ok
The C# translation did not take into account the difference between C#'s '/' and JS's '/', which I have fixed and now waiting to approve. @dfhwze
Not necessarily, no.
Boxing won't occur here.
char.IsUpper
takes achar
and returns abool
.bool
(orSystem.Boolean
) has aEquals(bool)
override, so the compiler won't choose theObject.Equals(Object)
method.Using
==
is still better practice, though, asEquals
), though the I'm nearly positivebool.Equals(bool)
would be inlinedCoding in C# is like coding a suit, everything looks neat and tidy if you follow the conventions and standards. Otherwise your code will look like a fat cat.
Completely agree, spent most of my time on this Kata figuring out all the sorting requirements that were not explained at all properly (at least for me).
added
No suggestion, closing.
This comment is hidden because it contains spoiler information about the solution
You doesn't understand the point that when u are solving this problem prefix and letters are two different part in the process.
When you read substring sorted by len + ascending lexicographic order, ur brain think automatically this is for the second part of the string, the letters, like "aaa" in your example.
At the end the two description mean the same but one is much more clearer and faster to understand, there is already a 40 upvoted comment 5 years ago from helloRupa wich had rewritten all the description of this kata.
And fun fact by watching all the comment I have seen the same answer of you 4 years ago to the same type of comment.
This comment is hidden because it contains spoiler information about the solution
Just looking at the comment everyone is complaining at the sorting thing, it should be said more clearly like:
1.Length
2.Prefix of string i.e 1, 2, =
3.Lexicographic
Everyone is missing the same second step, understanding the description should not be the hardest part of the problem but it's clearly the case here.
This comment is hidden because it contains spoiler information about the solution
what you suggest adding/editing?
You missed the space between words. See the examples in the description. Those brackets are added by JUnit to highlight where two strings are different.