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 could maybe add a ridiculous amount of tests and add a max limit to how many lines your code can be?
I am getting "uncaught exception: IOException of type UserError\nuser error (Expected expression to not compile but it did compile)", but stderr shows deferred type errors on all the tests that should not typecheck, which means my code is correctly making them not compile.
I tried implementing merge sort but the typechecker seems to go into an infinite loop.
I implemented bubble sort and it works on the sample test cases but exceeds the time limit on the hidden test cases, even when limited to 2 iterations. I assume that's got to be the compilation time limit since I don't see how a comptime algorithm could cause long runtime...
This comment is hidden because it contains spoiler information about the solution
republished a fix that evaluates the output of
identitySortand added some random testcasese.for some reason
solutionShouldHidefails to parse the Solution so I couldn't use it to block certain modules. Instead I tried to add an evaluation at the end to hopefully disallow that kinds of solutions.This comment is hidden because it contains spoiler information about the solution
Well, the kata has no random tests, so...
The typical
Unsafemodules needs to be banned, otherwise this happensI truly LOVE the idea of this kata!
Looks like it's been added back now.
Sample tests puts assumption on how
TimeLinesStateshould be defined. The initial code has signaturebut sample tests can only be run with
, which this is not specified anywhere, and is basically a fake degree of freedom.
The initial code is a mess. Shouldn't
instance Applicativebe defined beforeinstance Monad? And the type hints can (and should) go to the initial code instead of the description.Is the number of channels hardcoded as
2? Or is "multiple" to be taken as "unlimited" ?The example where the state type is the same as the output type is less than ideal to clarify this.
Needs actual specs instead of just an example. Again, autor, this is an invitation to read your mind.
Needs actual specs. Examples are nice, but they are an invitation to read author's mind. Please specify how
branchTimeLinesis supposed to behave.get,put,modify,stateandgetsalso need actual specification. You can assume the normal behaviour is known, but their behaviour with multiple timelines is not.Loading more items...