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.
You: Sheep num 3 you about to be eaten!
Sheep: Yeah, thanks for telling, adios!
already present in C++, JavaScript, Swift, Scala
added in Haskell, Java, Python, Rust, TypeScript
duplicate of this issue
Nice exericse but should be 7kyu, not 8.
The scenario is a good idea, but I don't think it's a good idea to be returning a String object.
Approved.
Right, this is my ommission. Sorry for troubling. Now all has mathched.
Your code is wrong, not a kata issue. Read the description again, the word you're looking for is
"wolf"
, not"Wolf"
they're different.Again, the same problem. Cannot pass the tests (Java), which say: expected:<[Oi! Sheep number 2! You are about to be eaten by a wolf!]> but was:<[]>. Am I right assuming, that my solution returns empty string except the required? Ubfortunetely, I don't know what is the source of the problen with tests. The IDE shows that all works as per the instructions, but it cannot test the Kata's inner (codewars') state... This is the second time when my solution returns no string value.
C++ Translation.
The only thing to fix is your code.
Please see if this paragraph helps: https://docs.codewars.com/training/training-example#writing-a-solution
This comment is hidden because it contains spoiler information about the solution
this task has "somebody touched my spaguette!" energy
This comment is hidden because it contains spoiler information about the solution
yes, my mistake. i should run return, not print :) sry
Loading more items...