You need to sign in or sign up before continuing.×
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.
I just learned that c# has arrow syntax. Cheers!!
This comment is hidden because it contains spoiler information about the solution
me either
Fixed
I did the other way, because I liked how it looked.
But yours surely looks way, waaay better. Well done fella!
I did the same, almost rsrs
I believe a grade schooler will instead yell at the teacher "what the fuck are you doing" if the teacher decides to do this.
This is an insult to what a teacher and student is. Teacher is supposed to do their job explaining things in a way that students can actually understand. Please don't abuse your students and claim you have the authority to do so.
Re-raising the issue below:
Why using
IEnumerable<string>
when you always pass a length 2 array?Notably, this implementation goes against C# conventions (specifically the
IComparer
interface) and hence is completely useless for any actual use.This is not an acceptable answer, so re-raising the issue.
Inputs are not strings anymore.
A clear and smart approach
TryGetValue is better suited for accessing with a key undetermined to be in a dictionary
Romanization scheme isn't specified, so the mapping is insufficiently defined (not to mention the mapping is incorrect: see the issue below).
This will also save the effort of defining the entire array in the initial code.
(btw, the arrays should not belong inside the method; they should be static variables)
The mapping provided in the initial code and used by the reference solution is wrong:
di
(ぢ
) anddu
(づ
) are mapped toji
andzu
.Loading more items...