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.
What I like about this solution is that it defines custum data types. What I don't like about the solution is its often very short variable and function names. When it isn't meaningful to introduce a new variable/function one can often do the computation(?) in place, like inserting a case .. of or a lambda (case) instead of a new function. E.g.:
exec cmd regs = case cmd of
Mov a b -> ...
Inc a -> ...
where
...
Also in simpleAssembler sz does't change, so it doesn't need to be an argument of go
This solution fails for ambiguous sampling.
There's an option to switch to TypeScript ES6, which supports
String.prototype.repeat
.I had the same problem, but it just means there's something else wrong with your code.
Sometimes the errors you get back don't make any sense.
prop_ext_eq n k = n >= 1 && n <= 10000 && k >= 1 && k <= 100 ==> twoByN n k == twoByN' n k
It generates integers by
where
first, then checks the constraint, so the upper bound of
n
is about 100 here.prop_ext_eq n k = n >= 1 && n <= 10000 && k >= 1 && k <= 100 ==> twoByN n k == twoByN' n k
It generates integers by
where
first, then checks the constraint, so the upper bound of
n
is about 100 here.This comment is hidden because it contains spoiler information about the solution