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.
Revised, should make more sense now.
thank u guy
Your suggestion doesn't make any sense, especially Line 3, and Line 4 is hard to understand.
Read carefully the tests results. You don't fail this test.
This is for the previous one. Your output is above the result of the test.
Rather look at the previous one:
testing(c(15,21,24,30,-45)...
and verify your result by hand.Hope this help.
You could have a look at https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution.
Notice that it is a question, not an issue:-)
I tried several solutions and all worked fine. 23 guys passed the R kata; not a lot but I think it is enough to say there is no error in the tests. Moreover you are failing some of the fixed tests that are the same in other languages.
There is no rounding in the tests. They simply compare the actual and expected results but it seems that R tests give an indication of the falsety by indicating a difference of mean which is without interest.
You should give an exemple of input with your output for a failed test so I can give you the expected result for this test.
Try again now. Should be ok.
Not a kata issue. Use
System.out.println(s)
to see input.The description says:
and the tests make it clear.