Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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
duplicate issue
-1
assertEquals()
with input in the assertion message. Remove theprintln()
.This comment is hidden because it contains spoiler information about the solution
I agree with you! 😂 Umayer you did a good job on this one, but try to rethink your solution using the KISS principle 😊
Excellent points. I agree, this should not have been upvoted as Best Practice.
The debates about
goto
andcontinue
are eternal andNever 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 inComplete Code
aboutgoto
:D I'm 100% agree with you thatcontinue
could be ommitted here as well as with others marks.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.
I completely agree. The three criteria are very poorly defined, and the explanation is also full of holes.
To me a poor Kata is one where it takes longer to understand the problem than it does to come up with a solution.
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.
Read the description: "a string strng of n positive numbers (n = 0 or n >= 2)".
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.
you're right, it's not necessary. I was just practicing using them as a way of solving the problem.
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...