Ad
  • Custom User Avatar

    Thanks for the feedback - much appreciated!

  • Custom User Avatar

    Loved this kata very much, thank you!

  • Custom User Avatar

    was is all that long?

    less than one third of a day

    that is not too bad

  • Custom User Avatar

    Thanks! Sorry it took so long.

  • Custom User Avatar

    Hi brodiemar. Good job. Good kata. Cheers

  • Custom User Avatar

    Hi mr1cz,

    I believe I have fixed it in the new translation. Please check if your solution passes.

    Thanks,

    brodiemark

  • Custom User Avatar

    I must say I'm not sure what's going on. Both the Python and C# versions expect ['Q']. I don't know why the Java one expects ['K'], the code is very similar. Also, it seems to be the only test case with the wrong result. Another mysterious fact is that somebody else submitted a Java solution which was accepted, so they also got ['K'].

    I thought it would be a easy fix, but it's not. Maybe I'm overlooking something simple, but I don't know. I will continue to work on it, but I'm not sure how long it will take. I really apologize for this. And unfortunately, there doesn't seem to be any way of temporarily unpublishing the translation while I work on it.

  • Custom User Avatar

    Strange - I will take a look

  • Custom User Avatar

    java. Bishop is closer to King than Queen.
    P -> R -> N -> B -> K -> Q.
    Why expected K?

    Board:
    . . . . . . . . 
    . . . . . . B . 
    . . . . N . . . 
    . . . . . . . . 
    . . . . . . . . 
    . . . . R . . . 
    . K . P . . . . 
    Q . . . . . . . 
    
    Starting piece: P ==> expected: <[K]> but was: <[Q]>
    
  • Custom User Avatar

    Why did you approve this kata?

    it's a good kata

    Your own solution doesn't even always pass the tests. Didn't you consider that maybe the verification method is not correct?

    I found a mistake. Can I fix it or should author do it?

  • Custom User Avatar

    I think it's best to raise an issue for this kata. I have so many questions! see what happens :)

  • Custom User Avatar

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

  • Custom User Avatar

    I really love the simplicity of this solution.
    However - I tested it with this input: new int[][] {{10, 11}, {1, 8}, {6, 9}, {5, 7}})
    and it returns 4 - note {10, 11} does not overlap with any other request - the result should be 3.

    Am I missing something?