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.
OP solved it, closing
OP solved it, closing
I agree it needs revision, the capital 'W' in the example output ["CodeWars"] made me think there could be mutiple capital letters in each string of the array which apparently isn't true. In cases of arrays containing multiple strings the only capital letters were the first ones of the strings making this problem easier.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
added for #1, #2 is already clear (case insensitive), closing ~~
My JS solution passes the Basic Tests and then I get something like:
expected 'Ashley' to equal 'Charles'
for the Randoms. I'd appreciate clarification on this output. Thanks.
This comment is hidden because it contains spoiler information about the solution
The description could benefit from having an example with "triplicates". E.g.,
How many times should
{ x: 1, y: 1}
be present in the return array? Once? Twice? Clarify that it should be at most once. If there is a "duplicate",{ x: 1, y: 1}
should be present in the return array at most once. If there are multiple "duplicates",{ x: 1, y: 1}
should still only be present in the return array once. The same goes for the other "duplicates" in the above example. So the expected result is:and not:
No, they are unnecessarily unclear. You are adding more than the instructions say. The instructions literally say:
The converse of a conditional is not logically equivalent to its conditional. If you code what the instructions literally say, you will not get the right answer. But the definition is simple:
A year is a leap year just in case either it is evenly divisble by 4 but not evenly divisible by 100 or it is evenly divisible by 400.
Code that, and you'll get the right answer.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Ah, okay. Thanks.
Can't be changed.
This comment is hidden because it contains spoiler information about the solution
Loading more items...