Ad
  • Custom User Avatar

    Please don't post solution in discourse. The solution page is here for that. If you have any question, ask a question. And in all cases use a spoiler flag if you post code in a comment.

  • Custom User Avatar

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

  • Custom User Avatar

    Nim attempt tests throw warnings:

    STDERR
    /workspace/solution_tests.nim(22, 6) template/generic instantiation of `test` from here
    /workspace/solution_tests.nim(24, 23) Warning: Deprecated since v0.18.0; use 'rand' instead; random is deprecated [Deprecated]
    /workspace/solution_tests.nim(22, 6) template/generic instantiation of `test` from here
    /workspace/solution_tests.nim(25, 33) Warning: Deprecated since v0.18.0; use 'sample' instead; random is deprecated [Deprecated]
    /workspace/solution_tests.nim(22, 6) template/generic instantiation of `test` from here
    /workspace/solution_tests.nim(25, 32) template/generic instantiation of `random` from here
    /opt/nim/lib/pure/random.nim(231, 14) Warning: Deprecated since v0.18.0; use 'rand' instead; random is deprecated [Deprecated]
    /workspace/solution_tests.nim(22, 6) template/generic instantiation of `test` from here
    /workspace/solution_tests.nim(25, 32) template/generic instantiation of `random` from here
    /opt/nim/lib/pure/random.nim(231, 20) template/generic instantiation of `random` from here
    /opt/nim/lib/pure/random.nim(227, 14) Warning: Deprecated since v0.18.0; use 'rand' instead; random is deprecated [Deprecated]
    
  • Custom User Avatar

    Don't return print(whatever...

    Just return.

  • Custom User Avatar

    More than 3000 persons (and I) have solved this kata in PHP and had no problem. Do not raise an issue without substantial arguments: logs, example of failed cases, code (with a spoiler flag)... Your code not working and you don't know why is not a kata issue. See here if it may help: https://docs.codewars.com/training/troubleshooting

  • Custom User Avatar

    NO, IT'S BECAUSE UPCASE LETTERS HURT THE EYES.

  • Custom User Avatar
  • Default User Avatar

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

  • Default User Avatar

    I've seen some pretty good and elegant solutions (better than mine), there, congratz everyone!

  • Default User Avatar

    i'm asking myself the same question