Ad
  • Custom User Avatar
  • Custom User Avatar
    • python test case for empty string fixed (should be False)
    • python test cases randomised
    • added python test cases for aabbcc style isograms ("each letter appears the same number of times, not necessarily just once")
    • fixed the 'complete solution'

    Cheers

  • Custom User Avatar

    It is the name of my cat.

    And as it does not exist, when I evoke it, it indeed raises an error: it is kinda of a hack for that ;)

  • Custom User Avatar

    Hi, the input list mustn't be modified (see the explation below.). I added it to the description. Regards, suic

  • Custom User Avatar

    I cannot reproduce the error: which language and can you post your code under a spoiler tag?

    Edit: made small fixes to check if it was a remote case; let me know if it works now

  • Custom User Avatar

    The final swap swaps positions 0 and 1. But at this point the ball is under position 2. The shell at position 2 is not involved in the swap, so the ball doss not move.

  • Custom User Avatar
  • Custom User Avatar

    Try again! I tried your code as-is, and it passes all the test cases!

    Just check whether you have

    1. The right imports
    • import java.util.*;
    • import java.util.stream.*;
    1. And you have included your SumofN inside a java class public class SequenceSum
  • Custom User Avatar

    The fact that you had to read the question multiple times means that you should haver or better retension ot better comprehension. Codewars Katas are designed for TDD hence not to provide a lecture on some topic. I dind't wrote the phyton version, so if you had doubts on that don't blame me, the person that kindly helped me to translate this Kata may help you if he likes to, otherwise you'll have to google for it or ask for help sending a Question in your very own separate thread and adding the tag Question to it to ask public kindness consisnting on helping you. I can't edit anymore the kata to prevent that dumb solutions like yours pass at the first trial so sorry but you will have to lear more on this topic for your own. Already filled an issue but got absolutely no reponse. I'm not getting paid a dime for this so I hope you understand that I will not even try to read your mind to make this kata as helpful as you and anyone need or like so please be concise with what you want to be changed and how you want it to be changed or you'll be wasting my time. Enjoy :)

  • Custom User Avatar

    @Javatlacati

    The fact that I'm having to reread the question multiple times is a start. You mention static methods are needed, but you provide no explanation. The katas on Codewars are not designed for a user to put a short snippet of "print hello world oh maybe use static... might be needed". Instead... for each language you build for you're supposed to define a little bit of what a static is. Provide some helpful resources. Yes. I learned that python actually had a static method decorator, but I have no idea why it was necessary for this test to pass. My function definition did exactly what the rules asked. If your intention is to cause difficulty through obfuscation, you're doing a great job at it.

  • Custom User Avatar

    Hey! It's just a hint and you should understand on your own taking help from the examples.

    Thanks

  • Custom User Avatar

    what kind of information? I already added the procedural tag, writed that thw app should be in main mode, that it should receive parameters for calling as in an example code and that must print the line Hello world... what else you cosider is missing?

  • Custom User Avatar

    Did the Javascript version. Honestly it isn't exactly clear right away what you're wanting. I'm not a beginner, but I had to read these comments to make sure I was approaching the right answer. I would recommend some sort of information since this is an 8kyu task.

  • Custom User Avatar

    mor explanation on which language, you want it to have more explanation could be useful ;)

  • Custom User Avatar

    Thank you for considering my kata :)

  • Loading more items...