• Custom User Avatar

    Newbie here, never knew that single and double quotes are different for PostgreSQL lmao

  • Custom User Avatar

    Instructions are clear enough.

  • Custom User Avatar

    instructions need to be more clear it did not approved my answer because of "" in even and odd

  • Custom User Avatar

    Not sure what your code is, but Xormias is saying that the kata requires you to build a return statement within the function as opposed to printing out the result to the terminal. Additionally many challenges may actually fail if you leave print statements in them due to the way they are built to be checked.

  • Custom User Avatar

    You have to return the result, not just print it.

  • Custom User Avatar

    However it's not an issue (= a bug in the kata).

  • Custom User Avatar
  • Default User Avatar

    failing the tests despite the code running well with different use cases outside of CodeWars

  • Default User Avatar

    Yeah that got me messed up as well lol. Felt like a trick question but I guess we gotta pay close attention

  • Custom User Avatar

    Thank you. And I will flag spoiler alert next time

  • Custom User Avatar

    Create a function that takes an integer as an argument and returns "Even" for even numbers or "Odd" for odd numbers.

    Because that's what the kata's description says. "Even" and "even" are two different strings. And please mark your post as having spoiler content next time.

  • Custom User Avatar

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

  • Custom User Avatar

    We don't know what you're doing, we don't know what you're printing, we don't even know which language you are using. Please read carefully this to debug your solution and eventually maybe post an issue that makes sense, but currently there's nothing to do with it: https://docs.codewars.com/training/troubleshooting/

  • Default User Avatar

    Tests are broken. I used Set for unic numbers and here my logs:
    Set { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
    Set { 2, 3, 4, 5, 6, 7, 8, 9, 1 }
    Set { 3, 4, 5, 6, 7, 8, 9, 1, 2 }
    Set { 4, 5, 6, 7, 8, 9, 1, 2, 3 }
    Set { 5, 6, 7, 8, 9, 1, 2, 3, 4 }
    Set { 6, 7, 8, 9, 1, 2, 3, 4, 5 }
    Set { 7, 8, 9, 1, 2, 3, 4, 5, 6 }
    Set { 8, 9, 1, 2, 3, 4, 5, 6, 7 }
    Set { 9, 1, 2, 3, 4, 5, 6, 7, 8 }
    Finished!
    still it expects Try again

  • Default User Avatar

    Thanks a lot. I've resolved the problem with your helpful comment.

  • Loading more items...