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.
Description should specify which of multiple possible longest repeatings substrings should be chosen ( which should then be tested ).
If any will do, this should still be specified. Note that it is very possible to allow ( and test ) returning any longest repeating substring.
No sample tests and horrible error feedback in Ruby
BF Translation
This comment is hidden because it contains spoiler information about the solution
This was more challening than I thought at first.
One thing I don't understand: Why does the original array have to be shallow copied to preserve the order of items that have equal last characters?
As already stated below, this is a clear duplicate of:
http://www.codewars.com/kata/find-the-2nd-largest-integer-in-array
The minor difference of smallest/largest does not make it unique or novel.
Thanks, @nakulgupta18! Nice kata, but sometimes letter 'y' is vowel. It would be great, if you will update your kata algo & test cases.
In C#, there are only seven fixed tests. Needs random tests.
In C#, the expected and actual fields for tests are backwards.
Additionally, the method name
greet
should beGreet
, as public method names arePascalCased
in C#.