Ad
  • Custom User Avatar

    oops this actually wasn't meant to be posted!

  • Custom User Avatar

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

  • Custom User Avatar

    Hey thanks @Blind4Basics, didn't realise I could see the solutions now. The ones there seem to have taken a very different approach to mine, wonder if I've done the easy or hard approach haha.

    But my solution isn't there, and when I click View Mine, it says 'No solutions'. I can indeed see the tests, however I'm not sure that helps as all the fixed ones pass now anyway.

    Just tried Attempt a bunch more times but am getting 1 failing random test each time, so I'm kinda resigned to needing to take a look at a random test next. Hoping to avoid that as they seem so big, but oh well.

    Anyway, thank you again. I really loved this kata, kudos to you! Particularly loved that as I progressed, my code got betterer and betterer. Hopefully I am now very very close to being able to submit.

  • Custom User Avatar

    I have completed the kata and got a pass on the random tests once, on my third click of Attempt after finally solving all the fixed tests.

    So I refactored and am happy with my solution, but need to pass the tests again to get to Submit.. which of course now I can't seem to do, arrrgh. I'm just clicking Attempt repeatedly, buoyed by that single pass I had, and getting the occasional "too many requests" error but no pass.

    Hoping I don't have to debug a random test! Wondering if there is a test seed being used, and whether I can reset it somehow?

  • Custom User Avatar

    Thank you so much for your quick reply!

    And arrrgh, the issue was me. When I copied that test into the local tests, I used the wrong expectation. Ugh.

    So sorry to bother you, but thank you again :)

  • Custom User Avatar

    Hey many thanks for your reply and pointers. Sorry I didn't see it till now!

  • Custom User Avatar

    Hello! Really enjoying this kata, thanks :)

    I am up to the Inner shapes identification correctness test, which is similar in some ways to Homer's favorite -- in that its an outer shape with some inner shape(s) -- but the expected outputs are not aligned, so I'm confused.

    Homer's favorite expects the inner shape to be removed from the outer shape, but
    Inner shapes identification correctness expects the outer shape to not have any inner shapes removed.

    These seem to be opposite approaches?

    Here are the shapes & expectations:

    Homer's favorite input shape:

    +----------+
    |          |
    |          |
    |          |
    |   +--+   |
    |   |  |   |
    |   |  |   |
    |   +--+   |
    |          |
    |          |
    |          |
    +----------+
    

    expects:

    +--+
    |..|
    |..|
    +--+
    
    +----------+
    |..........|
    |..........|
    |..........|
    |...+--+...|
    |...|..|...|
    |...|..|...|
    |...+--+...|
    |..........|
    |..........|
    |..........|
    +----------+
    

    while Inner shapes identification correctness:

    +--------------+
    |              |
    |        ++--+ |
    |        ||  | |
    |        ++--+ |
    +--------------+
    

    expects:

    ++
    ||
    ++
    
    +--+
    |..|
    +--+
    
    +--------------+
    |..............|
    |..............|
    |..............|
    |..............|
    +--------------+
    

    I don't understand why the outer shape in expected result for the latter has no inner holes?

    Can someone please help me understand what the difference is between these 2 input shapes, please?

  • Custom User Avatar

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

  • Custom User Avatar

    The expected value for Douglas Adam's description in the first test needs updating:

    -> should now be: "English author and humourist (1952–2001)" as per the "en" value in JSON response now.

    Can you please fix that so we can submit?

    (All other test cases are good and passing though. I'm not getting the issue mentioned by Iron Fingers, below.)

  • Custom User Avatar

    Ah, great, thanks for your help, I'll rework my solution.

  • Custom User Avatar

    Seems to be an issue with random tests for Ruby: they are all expecting a result of 0!

  • Custom User Avatar

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

  • Custom User Avatar

    oops didn't mean to submit

  • Custom User Avatar

    Loved this! My favourite kata so far.

  • Custom User Avatar

    I realised after submitting this I'd missed a refactor, so I've submitted a second, neater solution.

  • Loading more items...