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.
same ans
not bad!
It's shorter, but it's a lot less readable.
Yes, that's logically equivalent
Yes, that's possible.
Now it's invalid.
Amazing this has most upvotes for Best Practices when it is clearly wrong.
Expected: CHECK(stray({ 8, 1, 1, 1, 1, 1, 1 }) == 8)
Actual: 1
aye. If you already have a boolean, then just use the boolean. The conditional is redudant.
the else if would changed by only a else
if (true)
return true;
else if (false)
return false;
How about
return !(x|y)
Can't you remove
std::
out of the function's arguments as well?what if the first element is different?
that's true, my mistake
Can't do
!(x+y)
, because if x and y match, you'll get a false positive.Loading more items...