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.
I am not present there. Seems, I will join to your Discord. Also, I will check link with an issue ticket, you provided me.
Are you maybe present on Codewars Discord? We have
#fixing
channel there dedicated to discussions on fixing existing kata. If you are interested in fixing/improving C# tests, there is for example this ticket.One of the task's conditions states:
Does it mean that
window
variable can be zero or negative number?P. S. I already solved this kata and I want to contribute into test case maintaining.
Racket, actually, but both are Scheme/Lisp dialects. And certainly that corner case should be tested for any language...
Just for completeness, the language is Clojure?
The tests are missing a corner case -- I had an accepted solution that actually has a bug.
Namely: if the lists are of unequal length, and all the "extra" elements are larger than all the other elements, and the other elements match up, my solution says they are the same when they are not, because
for/fold
terminates on the shorter input.Here's a test case:
(comp '(1 2 5) '(1 25 4 26))
. The extra 26 in the second list sorts after 1, 4, and 25, and my fold ignores and returns true. Of course, the same thing happens if the first list has extra elements that are all bigger than the "other" elements:(comp '(1 2 5 6) '(1 25 4))
.There should be test cases that verify this corner case so that buggy solutions (like mine!) aren't accepted.
I updated test cases to make them more readable and maintainable for other testers.
C# translation
Fork which replaces the nasty stringified output with a list of records
OCaml output format is missing a colon after the
C
.Since fixing this will invalidate all solutions (and there are only 18 of them anyway), I'll change the format to something better when fixing.
If we're gonna break all the solutions we might as well change the output format to not suck, no?
Thank you very much.
I took it a step further, and approved.
nice kata.
I made fork with improved test cases, to make them more readable and maintainable by other testers.
C# translation
Loading more items...