Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Thank you! This is not a coding problem, it is simply about knowing the algorithm, which I did not.

  • Default User Avatar

    Yes, this would have saved me a lot of time. All the rest are >=, F is the only one thats just >.

  • Default User Avatar

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

  • Custom User Avatar
    1. Please use "mark as having spoiler content" if you post something that contains a solution. Even if the solution is botched.
    2. Comment on the solution itself. Some people only read the solutions and the accompanied comments, and visit the "Discourse" page only for hints.
    3. If possible, tag your comment. This could have been a "suggestion".
    4. It's not possible to change the tests if 500+ warriors have completed a kata. Sorry.
    5. Never promote your own solution, even if it is correct. It usually frowned upon and seems snotty. There are many other solutions which "do the right thing"™, so you could generalize that statement, like "Upvote a correct solution, e.g. <some linksgt;". There is a bunch of solutions which work exactly as you want, but they don't have an upvote either. You could easily raise awareness if you upvote those solutions too – unless you want your solution in particular to rise to the top.

    Hope this helps. Also, I'm not familiar with Python and didn't think about numbers greater than 0xffffffff. At this point I can only change the description and add that Python, Java, Coffeescript, Javascript and Ruby only use 32 bit integers.