• ###### dfhwzecommented on "I love the number 1" kata
• Looking at ref solution, author uses memoisation heavily, while barely any noteworthy combinatorics. I think the current tag should be replaced with `memoisation`.
• @author: is there a paper or some proof how the ref solution is able to find the optimal solution?
• ###### ohno0805commented on "I love the number 1" kata

The `**` makes this really spicy. Even when I still timeout because of it, I really like it.

• ###### Voilecreated an issue for "I love the number 1" kata

Also I forgot: the meaning of `/` is not specified. Is it integer division, or rational division (which results in fractions that can be cancelled later)? If it is integer division, is it allowed to be used on two numbers not fully divisible?

• ###### Voilecreated an issue for "I love the number 1" kata

This comment is hidden because it contains spoiler information about the solution

• ###### Voilecreated an issue for "I love the number 1" kata

Is this test even correct?

``````  test.assert_equals(ones(8080), 19)
``````

`8080 = (((1+1+1)**(1+1)+1)**(1+1)+1)*((1+1+1)**(1+1+1+1)-1)` which contains 17 `1`s.

Random tests are producing sub-optimal values as well.

• ###### pea18013resolved an issue on "I love the number 1" kata

I think its now ok.

ok

• ###### pea18013commented on "I love the number 1" kata

I'm not sure which assertion should I use...

ok

• ###### pea18013commented on "I love the number 1" kata

I see, I'll correct it later.

• ###### dfhwzecreated a suggestion for "I love the number 1" kata

tag `combination` should be replaced by `combinatorics`, which is a system tag.

• ###### dfhwzecreated a suggestion for "I love the number 1" kata

This comment is hidden because it contains spoiler information about the solution

• ###### dfhwzecreated an issue for "I love the number 1" kata

Please use overload of `test.assert_equals` that accepts a custom str message, and use it to display the input to the user.