Ad
  • Default User Avatar

    Took me more time than I thought it would, but enjoyed it. Kudos to the author.

  • Default User Avatar

    ditto. I also targeted a wrong format. Besides, I think this kata should be moved to the 7 kyu category at least.

  • Default User Avatar

    There should be one more condition added on the 0 and negative values being unacceptable. I though it was implied, and ran into a couple issues. Either add such cases to the testing pool and the description, or do not accept negative values. How can a valid size be negative?

  • Default User Avatar

    challenging, but such a relief when it finally resolved all the tests. I would rate this kata higher than 6: even though the final solution is simple, it takes some time to arrive at it.

  • Default User Avatar

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

  • Default User Avatar

    I'd suggest googling "Code complexity" or "Big O notation". There are tons of youtube videos on the matter as well. I would publish a youtube link here, but I doubt it's allowed.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    My bad. I was just checking how my breadcrumb URL generator looks in HTML (it's another kata), so I thought I would write a comment to a random kata to review its format and then delete it. But now you responded to it, so I can't delete it any longer. :D Sorry for the confusuon again

  • Default User Avatar

    The test case comparison only works when the outcome of your function is a string. In your case it is a 'NonType' object. Since "NoneType" object doesn't have certain attributes (e.g.: it doesn't have 'replace' attribute), the evaluator fails to run the test case comparison.

    In a nutshell, please make sure your function returns a string

  • Default User Avatar

    <a href="/">HOME</a> * <a href="/important/">IMPORTANT</a> * <a href="/confidential/">CONFIDENTIAL</a> * <a href="/docs/">DOCS</a> * <span class="active">INDEX</span>

  • Default User Avatar

    You are right. It did work once I applied Euclidean division (//). However, why should one spend so much time on figuring it out by running all those manual checks and numerous try-outs?
    The code itself takes 5 minutes, but grasping the task takes forever. A bit frustrating, but I'm glad it finally worked out.

    @Monadius, thanks a ton for the hint. Appreciate it.

  • Loading more items...