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.
Java translation
I think that you may have misunderstood my message.
To be clear, I made a suggestion saying that it would nice to have, in the kata description, a hint like the one I mentioned.
kata hint != kata suggestion
This is most likely due to the fact that, when you try an "attemp", your code gets tested against random tests. So, it is possible that sometimes the same code passes more tests than others.
This comment is hidden because it contains spoiler information about the solution
Nodev14, which is the highest Node.js version that you can use in this kata, does not support the String.prototype.replaceAll() method.
It's not the best method for assuring backward compatability. In fact, it can catch an error in the user's code and think the method did not exist, moving on to the other method. A better way is to check upfront which of the methods exist, call the most recent one (with correct naming conventions) when both exist, else call the only method that exists. If no method is found, throw some meaningful error.
fair enough, I dont do C# and didnt know it was possible to do reflection like this. ignore what i said then
Backward compatibility can work as demonstrated here which I have yet to understand fully yet, so it's fine to raise such issues, unless the author neglects fixing it, then feel free to close ~~
isnt it a bit late for that ? there are 3,600 C# completions already. it feels unfair to invalidate that many correct solutions just to rename a function. i'm all for renaming in languages that can do it with backwards compatibility, but cannot we just leave other languages be ? style guides are just this, guides, not tyrannical laws that must be obeyed. it's not like the user solution was part of a bigger module or application that has to have a standardized look
the tests do not care wether you print values or not, there are output parameters
min
andmax
passed by address that you have to fill, which is what you did. but fair enough, i added a C code block in the description, and a comment in the initial codeC# Function name should use
PascalCase
Relevant to C Language
The details specify "Write a function that returns both the minimum and maximum number of the given list/array.", but any given code will pass the tests not if such values are returned, but printed. The details of the task should be updated to reflect this.
Cheers. ^_^
Done.
This comment is hidden because it contains spoiler information about the solution
Loading more items...