Ad
  • Custom User Avatar
  • Custom User Avatar

    Closing since it seems to be resolved whereby the fork is approved

  • Custom User Avatar

    Approved by someone

  • Default User Avatar

    That's weird. Snail was trivial for me (less than 1 minute trivial). This I can't figure out.

  • Custom User Avatar

    same kind of operations

    same order of operations

  • Custom User Avatar

    Your solution always passes because it uses the same kind of operations as the reference solution.
    The solution in the post above is mine. it uses another order of operations, and fails one of every a couple of runs, even though its correct. Unless you think its not, then I'd be interested why.
    If my solution is correct, it should pass every test run. if my solution is incorrect, it should fail every test run. With your translation, as with any other currently present, it usually passes, and sometimes fails. and there are more users who reported this problem.

  • Custom User Avatar

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

  • Custom User Avatar

    I am reluctant to approve any further translations to the kata as it seems to be fundamentally broken. Two existing translations have problems with floating point accurracy (see two issues below), and as far as I can read the code, the Java translation can face similar issues.
    I would love to have the general issue in the kata fixed (i.e. remove the floating point inaccuracies, either by changing distance to a precise data type, or by changing assertions to use fuzzy equality), but I'd approve the Java translation if it did just that. However, I am afraid that changing the input format would introduce considerable inconsistencies between translations. Maybe allowing for a one second tolerance of the answer would solve the problem?

  • Custom User Avatar

    Regular users cannot approve their own translations.

    Content maintainers and mods are able to approve own forks, but it's meant as a way to introduce bug fixes quickly, and not to provide a new content. When a privileged user creates a totally new translation, it still should go through the regular review/approval process.

  • Custom User Avatar

    It seems to be roughly at the same difficulty level as 'Snail', a similar kata which is at 4 kyu.

  • Default User Avatar

    awesome, thanks Jomo!

  • Custom User Avatar

    changed my vote from "somewhat" to "very" satisfied, in that case :-D

  • Default User Avatar

    Thanks very much for the feedback. I've been meaning to change the word different to unique anyway, so yeah that's changed. But I really appreciated the notion of a sample test to illustrate the rule, so I also added one that should make this primary stipulation completely clear.

    As to why they should be unique, it's because in the real world playing of this game, it goes on way too long to be fun otherwise. With this limitation, the games are often short enough to finish reasonably soon, plus it gives you a chance to strategize and possibly trap your opponent.

    If you have a moment, please check to make sure my changes make sense. And thanks for playing!

  • Default User Avatar

    Is there a good book/website to learn streams? The book I'm using does not cover streams in depth

  • Custom User Avatar

    Yes, i think you're problem is solved if there is already an issue like that. Please let me know if there's still a problem. Also thanks for your appreciation!

  • Loading more items...