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.
It isn't a tie. Yes, read the worth of each race in the description.
Isn't it will be tie? Maybe I misunderstood the task.
Testcases are OK, something is wrong with your solution (I had the same problem with my C++ solution). Check edge cases and cases that cause fails in your code.
oh , that's really seem to be my bad , im sorry
Backup your code, click reset, and paste it again.
but why the default testcases are wrong ?
There is nothing to fix, you must have edited the sample tests. They should be like this:
This comment is hidden because it contains spoiler information about the solution
broken case in c++
if(number == 1) in test it will be "1s"
but at submitting if(number == 1) must to be "1 sheep..."
fix that pls.
Print the input to help you debug your code: https://docs.codewars.com/training/troubleshooting#print-input
There are 2 conditions there.
get error at 9th test , why expected is false?
BasicTests
Log
10
Expected: false ,
Actual: true