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.
Your solution has a bug and works incorrectly for some inputs, depending on order of intervals. See these intervals which should sum up to 19:
The strange behavior of tests you see is because in this challenge, for some reason, tests always shuffle inputs before calling your function. This is why your solution sometimes passed, and sometimes fails: because tests sometimes generate inputs which trigger the bug in your solution, and sometimes not.
I tried to solve it but I am having an undefined behaviour when testing, it always succeeds examples but when trying to attempt large scale test scenarios it sometimes fails the tests it made for the example test scenarios which were successful beforehand.Also when I re-attempt it ,it sometimes fails 3, sometimes 2 and sometimes 1 even though the code is untouched between attempts.
Your code being wrong is not a kata issue. You are directly
returning
the output string upon encountering a word with a length not smaller than 5, instead you should only return it after processing every word in the string.Hi, I registered today. My code seems to work, but the test interface does not accept my solution. Maybe I am trying it wrong. Am I missing something? My output is the exact same as the expected result. But it still says failed. Does the checker have a quirk that I don't get?
fundamentals ;-)
It seems that the performance version has looser performance requirements than I expected, because my refsol only performs a single optimization to trim the search space for common subsequences instead of the full DP implementation.
I've forked my fork, reverting the reference solution.
Remember to not make the refsol a spoiler for the performance version.
This comment is hidden because it contains spoiler information about the solution
It was fun! But 4 kyu is too much for this kata. This one (https://www.codewars.com/kata/5495bfa82eced2146100002f/python) is more complex, but it's 6 kyu.
This comment is hidden because it contains spoiler information about the solution
Your solution has two bugs which I had to fix to make it pass.
Bugs in your solution are not a kata issue.
I've made a fork that addresses all of these along with updating the reference solution to be much more efficient.
Random tests in Haskell could use some work:
Char
, leading to pairs of strings like"G8\1100651\95058\SUB\\A\b"
and"\n\n"
expected: 0 but got: 3
, with no indication of what the numbers indicate.expected: True but got: False
, which again does not tell the solver what the actual problem is.Enabled in this fork
Loading more items...