Ad
  • Default User Avatar

    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.

  • Custom User Avatar

    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.

  • Default User Avatar

    Tell me,please,somebody, how can I return both List and string in one method? I must return only string.

  • Custom User Avatar

    Your solution is built around specific test cases. Try to take a more generalized approach.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Hi all. Can somebody explain me why the second is false?
    XO("ooxx") => true
    XO("xooxx") => false