A sort of classic, nice.
Actually nope, as here there's a remainder operator used, and not the division one. So, if a number is even, its remainder divided by two is zero, thus it should go to the "else"(after : here) part.
This comment is hidden because it contains spoiler information about the solution
You should complete that in order to accept arguments like shown in the example.
Your task is to write a function, smartSum, that returns the sum of an arbitrary number of arguments.
There are no incoming arguments. How to write a function?
I'd vote boosting the tests. And it can be solved with recursion, can't it? Not the only way tho.
Time to remove the recursion tag, and rerank? And / or to boost the tests and have more than a single level of nesting?
recursion
Now it does.
Ranks can't be changed!
Great kata! Second what others have said, this is not a 7 kyu.
I think this should be level 6 or 5, I guess 5 if you decide to enforce time complexity
I like this kata.
Thanks! I'm planning on making another one soon :)
It was crazy cool game...I finally defeated all the Bosses! :D
Thanks, I'm glad you enjoyed it!
Loading collection data...
A sort of classic, nice.
Actually nope, as here there's a remainder operator used, and not the division one.
So, if a number is even, its remainder divided by two is zero, thus it should go to the "else"(after : here) part.
This comment is hidden because it contains spoiler information about the solution
You should complete that in order to accept arguments like shown in the example.
There are no incoming arguments. How to write a function?
I'd vote boosting the tests. And it can be solved with recursion, can't it? Not the only way tho.
Time to remove the
recursion
tag, and rerank? And / or to boost the tests and have more than a single level of nesting?Now it does.
Ranks can't be changed!
Great kata! Second what others have said, this is not a 7 kyu.
I think this should be level 6 or 5, I guess 5 if you decide to enforce time complexity
I like this kata.
Thanks! I'm planning on making another one soon :)
It was crazy cool game...I finally defeated all the Bosses! :D
Thanks, I'm glad you enjoyed it!
Loading more items...