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.
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.
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
So, the problem statement could be written more precisely in at least a couple of ways and not rely so much on two examples. But maybe that's how things are here. I'm new. This isn't the worst one I've seen. The problem descriptions often make these harder than they actually are.
The problem description really needs work.
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
Loading more items...