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.
Yes, for me it worked now. Thanks a lot!
Funny, it looks like the issue was fixed (https://github.com/Codewars/codewars-runner-cli/commit/59050f46dee6dd943e5c78cb4a0abadf1dd1cf33) but not pushed yet (2016-12-15 11:24 AM CET) to the servers used to test my submission.
The task for comp(n) should be rephrased:
In my C solution (and yours, too), the loop goes to n, not u(n)
All tests pass (Time: 2457ms Passed: 9 Failed: 0) yet I can't submit my final solution. The only explanation I see is that there's output to STDERR, but these are all warnings for the content of the Test.hs file over which I have no control (?).
I had to fix the examples to get rid of similar warnings.
Can you please look at the Test.hs file and fix the warnings?
STDERR:
/tmp/haskell116119-18-1h3md2h.98bxs10pb9/RPN/Test.hs:9:5: Warning:
Tab character
... snip same warning for lines
... 11, 13, 15, 17, 19, 21, 23, 25
All tests pass (Time: 3092ms Passed: 17 Failed: 0) yet I can't submit my final solution. The only explanation I see is that there's output to STDERR, but these are all warnings for the content of the Main.hs file over which I have no control (?).
[Edit 2016-12-09:] I can run the examples and don't get these warnings.
Can you please look at the Main.hs file and fix the warnings?
STDERR:
/tmp/haskell116117-18-czqumu.62eoupu8fr/Main.hs:7:1: Warning:
Tab character
... snip same warning for lines
... 8, 9, 10, 11, 17, 18, 19, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71 and 72
I had the same problem with random testing using k < 1.
In the end, I got an ugly solution working...
Here are the test cases I gathered while working on it, so you have an idea what kind of values QuickCheck generates and which answers to expect
Add test cases to "prevent" solutions like https://www.codewars.com/kata/reviews/5486115fd8325ec04c0001ea/groups/55988c1318b9e971f300001a or https://www.codewars.com/kata/reviews/5486115fd8325ec04c0001ea/groups/57cd9854fa9fc50f580002b7 which do not preserve the order of the input strings.
E.g. lcs "12345" "45321" == "45"
Also, a property test could be added to verify that lcs x y == lcs y x