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.
Some of the bugs I faced in my solution happened only when a ship was on a bottom or right border of the desk. At the same time, fixed test don't test this (at least in Java). So I think it would be good to add such a test.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I think this should be 4 or 3 kyu, my brain is exploding
Need review for PHP fork
Python tests issue:
Description: If more than one equally long subsequences have a zero sum, return the one starting at the highest index.
Python Test: If more than one equally long subsequences have a zero sum, return the one starting at the lowest index.
(Pouet36 noted this 29 days ago but did not mark it as an issue).
It has to be 4 kyu. And add regular expressions tag to this kata.
Okay, if someone has a problem that on only random tests you get "False should equal True", check if you use any constructions declared out of the main function. Fix it if you do (Helped me tho)
New to codewars, so I'm not sure where to post this exactly. My code passed all test but actually shouldn't.
Here is a testfield that is not correct, but my code sees it as fine:
There are 4 destroyers and the battleship is right next to destroyer.
This is a specific 'exploit' to my code, since this can only happen when a smaller ship is placed right next to a bigger ship, but two fields down. There is an easy fix for my code. But I wondered why it passed and realized that this is a very specific case that probably doesn't show up often in the random tests.
Please try the following test cases, some are copied from other suggestions and modified.
Please add theese to fixed tests:
I accidentally posted invalid solution that pass random tests once but didn't pass random test on the next attempt. If you will accept my suggestion than tests for this awesome kata will be more comprehensive. Thank you!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Go translation
Loading more items...