Ad
  • Custom User Avatar

    Re-raised as issue.

  • Custom User Avatar

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

  • Default User Avatar

    There are a lot of Kata that you can brute force in this way with a little google-fu even if you don't know the exact number. In fact you can google-fu a lot of katas if you really want.

  • Custom User Avatar
  • Default User Avatar

    Updated the description to addess the 2 , 5 issue. However, on the issue of limits, the rating (6 Kyu) gives guidance on the limits and guarantees that it's not a performance Kata, so I dont think it's necessary to include it.

  • Default User Avatar

    I hope the discussion here helped? There is plenty of discussion, particularly in reference to the 2,5 issue.

  • Default User Avatar

    I have been using an RPN calculator for many years and the current behavior is exactly what I would expect. I don't think ("1 2 3") should be invalid. It's pointless, but not invalid.

  • Default User Avatar

    Hi geresdi,

    sorry for hundreds :( Copy-paste is dangerous :). Now it should be ok.
    Thanks for your comments. I fixed all of them.

    Regards,

    suic

    P. S. Could you please assess the rank of the kata? Thanks

  • Default User Avatar

    Hi,

    First of all, thanks for reporting this bug. It should be fixed now. Please verify.
    I'm also a native speaker and it took me quite long too write down the rules :)
    I've created two more Hungarian based katas (1, 2). You might like them :)

    Regards,

    suic

    P. S.: Meg egyeszer koszonom. Ha megkerlek atolvasnad a leirast? Amig nem kezdtem dologzni ezen a katan azt gondoltam hogy a magyar szamnevek egyszerubbek (mint mas nyelvekben).

  • Default User Avatar

    I've just added more test case, mainly feeding it with the regular polygons up to 100 sides (but with a random side)

  • Custom User Avatar

    Maybe I am miss-understanding the exercise as well, if the given results below have to be divisible by all prime numbers within n, then it is not correct! 200 is only divisible by 2 and 5 not 3.

    =====================================================================================
    and the found numbers below 200 are 30 < 60 < 90 < 120 < 150 < 180 < 200 (6 numbers)

  • Custom User Avatar

    Actually I took this problem from programming competition, I participated in school more than 10 years ago =)

  • Custom User Avatar

    Thanks for your post!

  • Custom User Avatar

    Too late to change that, it will invalidate more than 430 solutions. The description is clear: "going(n) will return "result" truncated to 6 decimal places"; truncating is not rounding and I don't find math.floor(result*1e6)/1e6 ugly:-)