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.
Hey, thanks for the feedback.
While you are correct consider that there was no expected behaviour specified, e.g. should we return null oder string.Empty, which is the reason for me letting the method raise an exception in the case of the parameter being null.
Well I have to kindly disagree as the kata does not specify it that way.
This solution will fail if the argument (cc) == null => Calling Length property will throw a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
It's not a valid solution. You have to check for exact triples and exact doubles.
(9991212121212, 1212991) => 1
(9999999999999, 9999999) => 0 (method above returns 1)