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!"What would happen if "int n == -15", for example?.. Where is the checking for positive/negative int?
Thank you.
I like it!
me too!!
This comment is hidden because it contains spoiler information about the solution
oh, I apologize, I'm wrong. I forgot that the number n is not taken into account.
You only need to return the n positive odd numbers that comes before the given n.
for n=1 or n=3? or n=-10? something wrong.