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.
I also got stuck on the incorrect wording. I think correct would be simply: "If arr does not contain 5 and 13, function should return: "It's a white array""
I see no fixed test for PHP with input value of
0
and this doesn't seem to generate a0
either:$n = rand(1, 1e6)
are you sure about it?Same problem with PHP
Fixed.
Which language?
I believe this is still should be worded better.
Saying "If arr contains neither 5 nor 13" implies you're looking for the case where there is no 5, as well as no 13 (both have to not exist). What the white array is really testing for is a case where there is either no 5 or no 13 (only one of those does not exist).
Perhaps you could say "If arr either does not contain 5, or it does not contain 13, we should return "It's a white array".
Changed. Cheers O_o
Hi @myjinxin - that still seemed ambiguous to me...
Better to say
If arr contains neither 5 nor 13, we should return "It's a white array"
done.
This comment is hidden because it contains spoiler information about the solution
ok, I'v fixed it.
Thank you ~~
dear robjar,
Please explain your problem in detail, thank you!
I don't understand, why it is incorrect? can you explain?
You're right indeed. It reminds me that getMonth and getMonth() is definitely not the same thing. I made this test an example test case as well. Thanks.
Sorry about that, the right format is definitely 'mm/dd/yyyy'. Thx
Loading more items...