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.
@heptapod here is such a random test (each memory length is
100
) for which your code returns0
where instead it should return-1
:@YuKir hi, again: please get back to me with some data, thanks
@heptapod hi, your solution code may be exactly the same, but if your results are not the same ~ then the difference is in the tests (and you are going to have to trust the Codewars tests). For example, try this; get all of the exact input from a random test from Codewars that fails your test. Drop that test into your environment and see what happens.
same, but JS, idk what is this
Never mind about this comment. I don't think memoization with recursion works you have to use a loop.
the current version works only with py2. to avoid what you did, just use
//
instead.According to CW wiki Sympy is not available.
There are several random tests that the first time you submitted didn't pick up an error in your code but the second time the random tests may have missed it. If anything its a problem with my tests not testing all edge cases, which I will look into :-)
@heptapod, my apologies. Pls post your code here and will take a look. Remember to flag as spoiler.
That's the basic difference between fixed tests and random tests. With fixed input values, the expected values are also fixed, with random input values you have to calculate the output somehow, and store it in a var normally.
This comment is hidden because it contains spoiler information about the solution
It was marked as a Question, not as an Issue. About what
exp
is, it's the expected value (a string) calculated with a control function.Your code is wrong.
Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
think about the spoiler flag, when you're posting somewhat "critical" informations about/under a solution, please. ;)
+
is obtained putting the plus between two "back ticks": ``` (three of them, here)for code: two new lines, three back ticks, new line, your code, new line three back ticks:
Loading more items...