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 salute you sir! :)
You start by cubing every number (n * n * n). Then add the numbers together IF they are odd numbers. Then return the sum of the odd numbers.
so if your numbers are A, B and C:
(A * A * A) = odd1
(B * B * B) = even
(C * C * C) = odd2
Answer would be odd1 + odd2.
Sorry if I've confused things further
Hi , english is not my first language so I didn't get this part "odd cubed numbers" . Lets say for one of test case I got 4 as a "sum of odd" number, if I cube it than it will be 64 , which is incorrect. can you please explain me this?
You will sum the odd cubed numbers, as it says in the title.
I dodn't get it , can anybody please explain me in a easy way?
First, If there is any non integer in array than return None.
Second, I will sort all odd number from array. Then I will sum up the array , than what?