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.
"Given a number n, return the
number of positive odd numbers
below n, EASY!"Comparison of null values required . (OP solved it, closing)
RTFM Kata Rule:
Do not modify the ONE_HUNDRED declaration
Read carefully the sample tests, there is more than one bug still in your code.
||
and&&
are "shortcut" boolean operators.a||b
: if a is true, b isn't evaluated (because there is no need) => that's what your missing, herea&&b
: if a is false, b isn't evaluated either.