Your task is to shorten the code as much as possible in order to meet the strict character count requirements of the Kata. (no more than 161) You may assume that all array elements are unique.
your code is correct but too long
check if the error is from an empty list
I can't find that test case in the Java tests; can you take a second look and confirm please? If it's gone please close the issue.
Isn't this a mistake in the test? assertEquals("aaaccccbbdd", Kata.hasSubpattern("abcdabcaccd")); The sorted string is "aaabbccccdd"
my face reading this be like: [^_-]
With input "abc(" it loops forever.
This comment is hidden because it contains spoiler information about the solution
switch would be even more elegant ;)
Closing; issue doesn't seem to exist.
Why does this work? Doesn't ".reduce((a, b) -> -1)" mean that int i will always be -1?
In the getter, if (side == 5) { side = 0; return 5;}. This is stupid, but fixes the mistake in the tests.
Loading collection data...
your code is correct but too long
check if the error is from an empty list
I can't find that test case in the Java tests; can you take a second look and confirm please? If it's gone please close the issue.
Isn't this a mistake in the test? assertEquals("aaaccccbbdd", Kata.hasSubpattern("abcdabcaccd")); The sorted string is "aaabbccccdd"
my face reading this be like: [^_-]
With input "abc(" it loops forever.
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
switch would be even more elegant ;)
Closing; issue doesn't seem to exist.
Why does this work? Doesn't ".reduce((a, b) -> -1)" mean that int i will always be -1?
In the getter, if (side == 5) { side = 0; return 5;}. This is stupid, but fixes the mistake in the tests.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...