Ad
  • Default User Avatar

    Thanks mate for your reply!
    I was:
    using namespace std;
    so namespace resolution shouldn't have caused problems, I guess it was just some bug in the interface at that time, it worked ok in the days later.
    And I know that "using namespace" is frowned upon by some, but I'm here just for fun, not production code ;)

  • Default User Avatar

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

  • Default User Avatar

    and still, after a while I decided to check the test cases... hmmmm.... I wonder what is wrong with this statement:
    Test.assert_equals(abs(len(primes)-len(sol_primes)<3),True)?
    Maybe the fact that it returns the absolute value of ( len(primes) - len(sol_primes) < 3 )
    :))

  • Default User Avatar

    I'll be honest, the big challenge in solving this kata (Python version at least) was to figure out what the author intended to have for the length of primes[]. I happen to know a few things about primes, but this kata got me confused. I don't even know why I passed, and I won't try to figure it out.

  • Default User Avatar

    I apolodgize I wasn't more explicit in raising the issue.
    It refers to the Python version of the Kata. I've checkcked and it seems that it still needs the hack in order to pass

  • Default User Avatar

    "I know kungfu!"
    Nah, I don't, and I'm far from mastering Python metaprograming, but what a great kata to get me started on the subject!
    Thanks Dundee!

  • Default User Avatar

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

  • Default User Avatar

    Thank you Zirgion! Great Kata, I really enjoyed solving it! I will try to refactor the code at some point given that in current version I kept adding patches as I was hiting initially unforseen problems. Didn't realise how many things one needs to keep track of, while playing chess :)

  • Default User Avatar

    Nice Kata, g964! Clear description and important math concepts.
    If the tests for puzzle would use larger 's' it would force me to improve the efficiency of the implementation.
    This way, I just took the lazy approach ;)

  • Default User Avatar

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

  • Default User Avatar

    Nice one myjinxin, like all your kata's!

  • Default User Avatar

    Hi, it's a very nice Kata! However it has an issue that needs to be fixed in test 34. I needed to hack my code to pass that test. I'noticed that all the latest submissions have a similar hack. The "expected" value in test 34 has more characters than the input text.

  • Default User Avatar

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

  • Default User Avatar

    Very nice kata!! I think that with some small change which would prevent the use of a key, it could definitely be ranked higher.
    Maybe write another one in the series.

  • Default User Avatar

    Nice Kata! wonder why someone doesn't translate it to Python ;p

  • Loading more items...