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.
For performance, you should use a StringBuilder to avoid creating new string objects, instead of using the + operator.
Read the problem description.
Whoever created this was a bozo. The problem explanation leaves quite a bit to be desired, and the output for the test that fails, seems to indicate that my code produced the proper output. Seems like the Kotlin version is jacked.
Please fix. Your provided test cases are off by one from the real test cases used. You should also either clarify your explanation, or add tests for other situations they currently allow, such as preceeding and trailing periods, and the mouse appearing before the cat in the string.
Incomplete solution. It may work in the simplest case, but does not cover all possibilities given the limited explanation. The mouse could appear before the cat, or there could be preceeding or trailing periods. In fact this is a classic example of programming for the tests rather than the actual problem!
Ducksoft above is more complete. This may solve their limited testcases, but not every case possible according to the description.
Incomplete solution. It may work in the simplest case, but does not cover all possibilities given the limited explanation. The mouse could appear before the cat, or there could be preceeding or trailing periods.
Incomplete solution. It may work in the simplest case, but does not cover all possibilities given the limited explanation. The mouse could appear before the cat, or there could be preceeding or trailing periods.
This comment is hidden because it contains spoiler information about the solution
I haven't even looked at this kata, but it might be helpful to note that in java, and javascript % is a remainder operator, NOT modulo (there is a difference).
You assume incorrectly.
I'm going to say this one is a cheat, rather than clever. I mean, this is pretty friggin simple anyway.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Needs additional tests.
Loading more items...