Ad
  • Custom User Avatar

    Expected output is unspecified.

    Also: use correct datatypes. "if it's a pirate speaking or not" would be a Boolean, not a String.

    Strings are cute, but rarely the correct choice for a datatype.

  • Custom User Avatar

    retired

  • Custom User Avatar

    Thanks for the feedback, I added 100 random tests in it

  • Custom User Avatar

    well... The kata already got retired (that's automatic, based on the satisfaction votes, sorry) Anyway...

    Cheers

  • Custom User Avatar

    note: don't use the spoiler flag when ther is nothing spoiling anything: other users don't get notifications of your answer when the flag is activated.

  • Custom User Avatar

    added more random tests with variable sizes and WELL EXAGGERATED to not pass any of these options

    that's the "wrong" way to do it. ;) There rather should be 50-100 random tests on inputs of normal lengths. There, the test is not debuggable at all.

    Cheers

  • Custom User Avatar

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

  • Custom User Avatar

    Hi,

    This kind of task has already been too often. There are almost no chances it gets approved nowadays, even if done "properly". Did you already read the whole documentation about authoring? It gives some advice about what is or isn't suitable for a kata and what is or isn't generally welcomed by the community.

    Issue part:

    About your kata: random tests must be done in batches. Generally 50 to 100 of them.

    Cheers

  • Custom User Avatar

    Random tests are too weak. This solution passes 30% of the time.

  • Custom User Avatar

    Unfortunately, your kata got already retired.

  • Custom User Avatar

    Added random tests

  • Custom User Avatar

    A programmer tired of using the same patterns: camelCase, PascalCase, kebab-case, snake_case, etc, decided to create his own case: CoNSoNaNTCaSe, which is basically to make all consonant uppercase, the other letters lowercase and no spaces between words, numbers and special characters are kept the same.

  • Custom User Avatar
    • No random tests
    • You don't mention how to handle whitespace
  • Custom User Avatar

    In the one you sent, it must be separated, in the one I did, it must be removed and if they are all odd numbers, it must return 2, I believe they are similar but it is not duplicated

  • Custom User Avatar

    Still a duplicate Note that when the solution of the kata can be directly copied from the other one with no brainstorming required (i.e. the task is very direct and trival), it's considered as a duplicate.

  • Loading more items...