Ad
  • Default User Avatar

    Yes, I think the instructions should be more specific and tell people the format of possible inputs. Is empty array or None or [None] or [None, None] possible input? How to treat None? Ignore it or count it as a placehoder and treat it as 0? I can't figure out what's wrong with my code. I only got very short error message which just caused more confusion rather than being helpful! :(

  • Custom User Avatar

    Resolved until further notice.

  • Custom User Avatar

    Thanks. I've edited the description to include the points you mention.

  • Custom User Avatar

    I think "deactivate"(if there is such option) would be a immediate solution. Remove it seems a bit unfair with those who already solved the kata, they will just loose their solutions.

    IMO the right way would be to disable the 500+ solutions rule for admins. Thus avoiding future katas to get stuck like this.

    I already sent this suggestion to codewars. Let us see what codewars admins will suggest.

  • Custom User Avatar

    It's necessary to specify if it is possible to have:

    • empty array
    • length == 1
    • no numbers array elements
  • Custom User Avatar

    As joh_pot said you are using return in the way that the execution of your method just finishes.

    For others questions/answers I would recommend you to take a look at the markdown spec, which can help you to write answers/doubts in the correctly formatted way.

  • Default User Avatar

    Thank you for valuable feedback. I have implemented your suggestion. The description was weird but it kind of grew over time as I got more feedback from people. Thanks again.

  • Custom User Avatar

    Maybe the description could be improved a bit. What do you think about an approach with a more concise desc plus examples?

    e.g:

    Check to see if a string has the same amount of 'x's and 'o's. The method must return a boolean and be case insensitive. The string can contains any char.

    Examples input/output:

    XO("ooxx") => true
    XO("xooxx") => false
    XO("ooxXm") => true
    XO("zpzpzpp") => true // when no 'x' and 'o' is present should return true
    XO("zzoo") => false
    
  • Custom User Avatar

    pretty sure admins are able to fix this.