What's the point with the link in the description? (see the comment in my solution, also)
This leads to a very poor kata, imo.
Those using the info have nothing to do
Those trying to actually solve the kata will hit a wall, thinking they are facing a 5 kyu while it's at least 3 kyu without the link (it's harder than "Bribe the Guards of the Crown Jewels")
If you decide to keep it, removing that info, tell me so that I remove all the rank suggestions.
Sample tests are significantly harder than actual submit tests, running in about 10s for the solution everyone is using whilst submit tests only take 2-3s.
Looking at some of the current solutions, I have a feeling that there are no (or not enough) cases like Q..x.y., where the y piece is hidden by the x one. Using various strategies like swapping the board, or the pieces, you should be able to catch most of the implementations that do not consider this (ie: that could catch y instead of x)
It might be a good idea to change the expected output from bad values of n from empty collections to None/null/Option(I think?) in Python/JS/Java for future maintainability reasons. Should be possible to preserve old solutions as well.
Since durations are
integers
, the result is a fraction and could be returned as aFraction
instance instead of percentage float.Very nice Kata btw.
This comment is hidden because it contains spoiler information about the solution
Hi,
What's the point with the link in the description? (see the comment in my solution, also)
This leads to a very poor kata, imo.
If you decide to keep it, removing that info, tell me so that I remove all the rank suggestions.
Cheers
Sample tests are significantly harder than actual submit tests, running in about 10s for the solution everyone is using whilst submit tests only take 2-3s.
Hi,
Looking at some of the current solutions, I have a feeling that there are no (or not enough) cases like
Q..x.y.
, where the y piece is hidden by the x one. Using various strategies like swapping the board, or the pieces, you should be able to catch most of the implementations that do not consider this (ie: that could catch y instead of x)Cheers
Now let's create a kata for
B
... oh, waitThis comment is hidden because it contains spoiler information about the solution
This comment has been reported as abusive
( JS )
Random tests runtimes vary wildly. Try to generate more consistently distributed sizes.
This comment is hidden because it contains spoiler information about the solution
I got different results in my local IDE and on Codewars using the same inputs and code. Did I overlook something here?
This comment is hidden because it contains spoiler information about the solution
It might be a good idea to change the expected output from bad values of
n
from empty collections toNone
/null
/Option
(I think?) in Python/JS/Java for future maintainability reasons. Should be possible to preserve old solutions as well.If we need to return two sets of equal sum, wouldn't it be more appropriate to return the two sets as, well,
set
s instead oflist
s?Duplicate of https://www.codewars.com/kata/59c919326bddd238e9000103
Loading more items...