Ad
  • Custom User Avatar

    If you look at it from a performance point of view, this solution will benefit when compared with a solution that uses Sequence. During my research, Sequence takes between 5 and 13 seconds, while a solution based on while takes 0 seconds

  • Default User Avatar
  • Custom User Avatar
    • Random tests do not generate cases expecting -1
    • Random tests only check for a valid equation, not that it is the lowest digit, nor that it is a digit not present in the input.
    • Tests should use assertEquals() with input in the assertion message. Remove the println().
    • Some more fixed tests have been established and added to Java, JS. Please add them also here.
  • Custom User Avatar

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

  • Custom User Avatar

    I agree with you! 😂 Umayer you did a good job on this one, but try to rethink your solution using the KISS principle 😊

  • Custom User Avatar

    Excellent points. I agree, this should not have been upvoted as Best Practice.

  • Custom User Avatar

    The debates about goto and continue are eternal and Never say Never. It's highly recommended to avoid using these features, but in some particular seldom cases they can be really helpful to solve the existing problem and keep code clean. There is even a special chart in Complete Code about goto :D I'm 100% agree with you that continue could be ommitted here as well as with others marks.

  • Custom User Avatar

    i and j are any two indices in the array. If one element in the array is larger than another one, change it to the difference between the two.

  • Custom User Avatar

    I completely agree. The three criteria are very poorly defined, and the explanation is also full of holes.

  • Custom User Avatar

    To me a poor Kata is one where it takes longer to understand the problem than it does to come up with a solution.

  • Default User Avatar

    Your definition of frequency is for "Physics". In "Statistics" the frequency of an event is the number of times that event occurred in an experiment or a study.

  • Default User Avatar

    what about the case where only ONE number is in the string

    Read the description: "a string strng of n positive numbers (n = 0 or n >= 2)".

  • Default User Avatar

    11,778 people passed the kata (not you?) so I think it's not an issue even if you don't like the description:-) Moreover I get accustomed to your critics...
    Many people find it interesting and good. All opinions are possible but they are still opinions.
    Rather complaining you should propose something that you consider as better.

  • Custom User Avatar

    you're right, it's not necessary. I was just practicing using them as a way of solving the problem.

  • Custom User Avatar

    I agree, imo it would be much clearer if the first part with the comments was not included.
    The "cannotUseFun" made me think I'm not supposed to use "fun" keyword, if it could be renamed to "cannotUseForbiddenKeywords" or something of that nature it would prevent misunderstandings.

  • Loading more items...