Ad
  • Custom User Avatar

    Please read this: https://docs.codewars.com/training/training-example#writing-a-solution

    Your solution is not exactly correct, it's not a bug in the kata.

  • Custom User Avatar

    .

  • Custom User Avatar

    To me, the current setup is rather OK. The goal of random tests in unpredictability of outputs, and I think that even if there are separate tests for two types of input, they are still sufficiently unpredictable. Ideally, the solution here would be two functions, and not a single function doing two tasks.
    I know where B4B comes from but I think that it's difficult to address all bad ideas users can come up with, and just the fact that boolean return values are somewhat special and require a bit different handling does not necessarily have to affect all test suites.
    For this kata, I think that both types: shuffled, and separated, are OK, and I would not dismiss any.

  • Custom User Avatar
  • Custom User Avatar

    But 7 is a narcissistic number? I also cannot see the 1654 being used as an example anywhere, where do you see it?

  • Custom User Avatar

    It seems to work for some users, but not for others? It can be related to your ISP, can you check if the image appears when viewed over VPN, or from another network?

  • Custom User Avatar

    Missong quote in actual suggests that your answer is wromg after the last character: maybe it has a newline, or messes up null termination somehow, or does not set the string lenght correctly for some reason.

  • Custom User Avatar
  • Default User Avatar
  • Custom User Avatar

    One thing wrong with the below code is that it's not properly formatted. Please read this paragraph on how to use code formatting in Codewars discourses.

  • Custom User Avatar

    As promised, I am going to restore your authoring privlilege, but please have following in mind:

    • Before authoring a new kata, please become familiar with related documentation: Kata authoring tutorial, all pages of kata authoring guidelines, and authoring guides for your language of choice, if available (for example for Python, or JavaScript). I would also like to yet again recommend asking for help and advice on #help-author and #reviewing channels of Codewars Discord.
    • Please remember that other users will get to vote on your kata. It is highly probable that any kata which will appear dull or too similar to another kata, will be simply downvoted.
    • I restore your privilege trusting that after going through the series of reviews, fixes, and improvements, you learned how authoring works and what is important when creating a new kata. If I will notice that you choose to ignore the lesson and deliberately spam series of low-effort, bad kata which do not conform to authoring guidelines, I will ask for a ban.

    Your authoring privilege has been restored. Please use it wisely.

  • Default User Avatar

    I will pick option 2:

    "I restore your privilege for authoring kata as I promised, and you copy..."
    

    It seems like you don't want me to publish. It is fine if you don't want me to publish this. I just want the permission back. I can just keep it like this and get the pannel back. I'm fine with that if it's what you want. Tell me what you think.

    PS. reply: Yes, we are talking about the java version. The Python version is long gone!

  • Custom User Avatar

    Thats because regex is not the best tool for this task, and getting regex to work for this task is tricky. If you tried to solve this kata with regex and it did not work for you, you most probably did a mistake many people do when using regex for this kata.

  • Custom User Avatar

    If I want to bake bread, and I do not want to use google or chatgpt to bake bread, what should I do? Are there any hints how to bake bread?

    What I mean, there are only two possibilities: you either get the required knowledge from somewhere, or you go the philosopher/inventor/scientist way and distil the knowledge from the thin air by staring at the problem hard enough.

    If you are asking where to find the required knowledge, then there is many possibilities: books, the Internet (in many forms), howtos, tutorials, other people. API reference docs are not the best way, because they are not meant to provide solutions. API reference is like an encyclopedia which answers question of "What is X?", rather than "How to do Y?" . Having hints in the kata itself would not be really helpful in the long run, because authors can never know what will be helpful for all users.

    I personally think that the best source of knowledge are people smarter than me. Find someone who knows, and ask for advice. One good place to ask would be #help-solve channel of Codewars Discord.

  • Custom User Avatar

    There is this classic Polish comedy movie from "good, ol' times" where one guy gets fined at a border control point because he left Poland as 119 kg and arrived as 115 kg, effectively reducing Polish population. He got an additional fee because he declared his education level as "with a degree", and the fine for loss of every kg of an educated citizen is higher than of an uneducated one (see the clip in Polish (unfortunately no subtitles) ).

    It seems that weighting people as they enter countries of Arstotzka bloc was a thing.

  • Loading more items...