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.
This comment is hidden because it contains spoiler information about the solution
I believe this would be a duplicate (including the list aspect, although they are handled in a slightly different way).
https://www.codewars.com/kata/5824daf7c4d7f388600002a3
It's an old JavaScript-only beta, though. Not sure if that would be enough of a reason to retire this one.
The description is very unclear. I had to guess what you meant by 'order of insertion' and 'every next item'. There are also no instructions of what to do when the function is called with no arguments.
Syntax error in starting code:
const newWeirdObject => () => ({})
should beconst newWeirdObject = () => ({})
True, I forgot there were dictionaries inside the list. Try this:
import copy
files_to_test = copy.deepcopy(files)
That should enough, yes.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I understand that the formulas are different, but as far as programming goes it's the same task with different multipliers.
Duplicate: https://www.codewars.com/kata/readability-is-king/train/javascript
I realized that after making the suggestion, sorry.
I have more questions about the description now that we have random tests, though. How do you expect cases such as 912 or 127 to be treated? What is the expected output when the second digit value is lower than the first, or when the third digit is greater than the difference between digits 1 and 2? Maybe adding more examples would help.
Eh, sorry, I wasn't getting notifications on this post for some reason and approved it before seeing your first comment. I published it with the power user average ranking (6kyu), since the overall average seemed a bit too high (5kyu). Are you sure it's too late to change the nil/empty array thing, though? The author's solution would have to be updated, but aside from that it's a minor change.
Agreed. I thought of doing that, but it would invalidate pretty much all of the existing solutions. Would that be ok?
Loading more items...