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.
Why do we need this code here? Is there some question I missed? Can we have it properly formatted?
This comment is hidden because it contains spoiler information about the solution
Go Translation ;)
Haskell tests generate strings outside of ASCII range. Fork here fixes it, along with updating the tests so failure messages are more 7kyu-friendly and show the tested string without the QuickCheck modifier cruft.
added all 3 to JavaScript
Not an improvement. Rejected.
smart
This comment is hidden because it contains spoiler information about the solution
did the same, so neat!
In C#, the signature is
IEnumerable<T> UniqueInOrder<T>(IEnumerable<T> iterable)
: this means that it is a generic function, which shuold accept an enumerable of things of some type, and should return another enumerable, with elements of the same type.In other words, you need to use the mechanism of C# generics and make your function be able to accept and return elements of many types.
Tell me,please,somebody, how can I return both List and string in one method? I must return only string.
Everything worked fine on Python. It's an interesting kata, well done.
No random tests in CoffeeScript
Sample tests of all languages should follow the Python setup by including test cases for
Array of numbers
Array of strings
Empty String
Empty Array
No random tests in TS
Loading more items...