Ad
  • Custom User Avatar

    Better output messages: was true or false expect?

  • Custom User Avatar

    the initial code should contain String, not string as a type declaration for Java.

    Also maybe specify what the output should be if the input is not of the correct form.

  • Custom User Avatar

    State that 0 should be returned when the passed string is empty.

  • Custom User Avatar

    Currently: "But as a little hint, the solution to the this Kata is exactly the same as the example test cases."

    Proposed: "But as a little hint, the test case that checks the solution is exactly the same as the example test case."

    Why? I first understood that the solution (!= solution test case) is exactly the same as the example test cases. This may be because I am not a native english speaker, however, others may have the same issue.

  • Custom User Avatar

    Failure messages did not specify precisely why the test failed. I forgot the ! symbol at the end of the greetings string. It did not indicate that to me.

  • Custom User Avatar

    You can use getOrDefault since Java 8.

  • Custom User Avatar

    It should be stated that the ideal solution does this by hand and not by simply calling (i.e., delegating to) a single API method for this purpose.

  • Default User Avatar

    Description should be more specific. What in case the input is {1,2}? Just take the first integer with odd occurrences?