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 2precis3! was searching for the same thing:))))
I love this.
This kata is much harder than 8kyu.
At least a 7kyu, or alternatively explain the problem more clearly or explain the test cases more.
LOL! :D
Btw: There is a simple translation exercise for you. :D
https://www.codewars.com/kata/57ad85bb7cb1f3ae7c000039
What bonus? We'r calculating the total cost of mangoes. The offer is that for every 3 mangoes you buy, you only pay the price of 2.
Each mango cost £3 => if you buy 2 mangoes it will £6
If you were to buy 3 mangoes at £3 each, the total price is still £6.
4 mangoes at £3 each => total price = £9 and so on.
Let me know if this makes sense
This comment is hidden because it contains spoiler information about the solution
I just checked the test cases again and they're fine. You might want to check your code again.
3rd test case: quantity is 2 and price is 3 => total price = 6
4th test case: quanity is 7 and price is 3 => total price = 15
This comment is hidden because it contains spoiler information about the solution