Ad
  • Custom User Avatar

    It isn't a tie. Yes, read the worth of each race in the description.

  • Default User Avatar

    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.

  • Custom User Avatar

    Backup your code, click reset, and paste it again.

  • Custom User Avatar

    There is nothing to fix, you must have edited the sample tests. They should be like this:

    Describe(CountingSheep) {
      It(BasicTests) {
        Assert::That(countSheep(0), Equals(""));
        Assert::That(countSheep(1), Equals("1 sheep..."));
        Assert::That(countSheep(2), Equals("1 sheep...2 sheep..."));
        Assert::That(countSheep(3), Equals("1 sheep...2 sheep...3 sheep..."));
        Assert::That(countSheep(4), Equals("1 sheep...2 sheep...3 sheep...4 sheep..."));
        Assert::That(countSheep(5), Equals("1 sheep...2 sheep...3 sheep...4 sheep...5 sheep..."));
      }
    };
    
  • Custom User Avatar

    Print the input to help you debug your code: https://docs.codewars.com/training/troubleshooting#print-input

    create a function that will return true if the walk the app gives you will take you exactly ten minutes (you don't want to be early or late!) and will, of course, return you to your starting point.

    There are 2 conditions there.