Ad
  • Custom User Avatar

    The precedence of = is lower than that of +. You should be parsing hijwpyk = 73 + 44 as hijwpyk = (73 + 44) not as (hijwpyk = 73) + 44.

    It looks like the error message has the "expected" and "received" backwards -- that is, your code said 73, but the expected value is 117.

  • Custom User Avatar

    just gotta hardcode that specific case

  • Custom User Avatar

    Kata is still unsolvable at time of this comment due to this issue.

  • Default User Avatar

    oops this actually wasn't meant to be posted!

  • Default User Avatar

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

  • Custom User Avatar

    But my solution isn't there

    Now, you can find it.

    Particularly loved that as I progressed, my code got betterer and betterer.

    this means you solved it the hard way. x)
    Kudos!

  • Default 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

    you can fork your previously passing solution (it should already be visible in the solutions page) and work there wih your updated code. This way you can also see the tests.

  • Default 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?

  • Default 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

    Hello,

    The expected output in the full test suite is effectively the following (mnius new lines):

    expected = ["""
    +--------------+
    |              |
    |        +---+ |
    |        |   | |
    |        +---+ |
    +--------------+
    """,
    """
    ++
    ||
    ++
    """,
    """
    +--+
    |  |
    +--+
    """,]
    

    So I guess you're mutating something you shouldn't in your code?

  • Default User Avatar

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

  • Default 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?

  • Default User Avatar

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

  • Default 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.)

  • Loading more items...