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.
Thanks by the answer!
I was so naive trusting in your tests...
For the ones comming after this point: Don't forget 'everything is a lie'! (even this, maybe)
Everything is correct, it's just neither addition nor multiplication. Come back later maybe, people learn things in different orders, so I think it might be harder than 7 kyu for some.
you mean
return a+b?
no no no.. It's not the correct answer, so you should thinking and testing, find the correct answer. This is a puzzle, and the title of kata is a hint. a and b? a ? b..There must be a problem with the tests in c++...
My code can only returns the sum or the product (if/else case).
But the test passing 2 and 2 failed (expected 4, actual 2).
It is not possible! Can you verify this problem for me, please?