Ad
  • Default User Avatar

    c#: I don't understand how the semicolons are counted:
    the body consists of: { return xxxx; }
    but Test Failed
    Too many semicolons found. Only 1 allowed.
    Expected: 1
    But was: 4

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Default User Avatar

    If the 'next' method of the generator takes a parameter, it's not clear to me how the flow should be managed.

    The first call of 'next' should provide the initial value to the generator method and return that value -> ok.
    In case of the summation example 'next(10)' -> returns 10 -> 'total' = 10
    Then the second call 'next(42)' -> the yield should take this parameter and provide it to the generator function:
    - so total becomes 10 + 42 = 52
    - then, that second call should return 52. How is this possible if 'total' is a local variable inside the
    generator function and it got updated to 52 after the yield took place?

  • Default User Avatar

    This solution should be invalidated.

  • Custom User Avatar

    I had a little look at this Kata today and have a solution that solves the sample tests fine, but times out for the final tests. I'm finding it a little hard to find the root of the problem, as I'm unable to debug the cases. Any help would be greatly appreciated!

  • Custom User Avatar

    It should be told in the description that the code is executed in strict mode... :/

    I had found a pretty nice idea, but I cannot apply it because of this.

  • Default User Avatar

    I believe one of the Board Configurations, 1st Turn test cases is wrong... it says ✘ Expected: 2, instead got: 1. I think the correct result is 1 (X will win). Can you please double check this?

    The test case is: (I'd spoiler this, but it can be trivially logged)

    [ [ 1, 0, 0 ], [ 0, 0, 0 ], [ 0, 2, 0 ] ]

     X |   |
    ---+---+---
       |   |
    ---+---+---
       | O |
    
  • Custom User Avatar

    kata is very nice.

    If you add some random testcase, I will vote it as "Very" and rank it as "5kyu" ;-)

    If no, sorry...

  • Custom User Avatar

    Needs random test cases, see my solution.