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.
oh I thought it is because the number of o's aren't the same with the number of x's
I know this is from last month but I want to explain in case anyone else sees this. I believe it's because the second example has 3 x's and doesn't match the 2 o's.
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.
Your solution is built around specific test cases. Try to take a more generalized approach.
This comment is hidden because it contains spoiler information about the solution
Hi all. Can somebody explain me why the second is false?
XO("ooxx") => true
XO("xooxx") => false