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.
nice trick
This would fail the 'name' is null. You should do the other way around: "Zach.Equals(name)".
hmmm thats pretty clever
No casting is needed, Object is mother and father of all types :-)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Could somebody please explain, why don't we have to convert the string to Object type, whereas it is a necessity when we return false in this Kata? I guess it's because the Object type is a class-generated type (not an object type as such, the one that begins with lowercase), but i can't think this through any further.
Any chance SQL exercises/kata be added?
The final test cases are locked due to 500+ submitted solutions, but I added a predefined user test case for
{ 9, 9, 8 }
, which expects1
as a result.C#, only have one in mind. The question specifies there can be duplicates, so if you have an array of [9, 9, 8] then some of the solutions I saw would fail this test.
Which language and test case are you talking about?
The test cases aren't really comprehensive enough given the solutions I've seen.
LINQ ALL THE THINGS
I always overcomplicate things.