Ad
  • Default User Avatar

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

  • Custom User Avatar

    @djdenton Apparently, I disabled the random tests one year ago and only noticed now. Now there will be fractional values for n.

  • Custom User Avatar

    Some of the solutions use Math.log1p and Math.expm1, which is clever, but probably not what you intended.

    This is strange. Math.log1p should be disabled.

  • Custom User Avatar

    Disable the maths library completely

    Why? If there are issues with the few left over Math methods (abs, max, random and some others), state them. Otherwise this is just a suggestion.

    make it clear that the values of nth in the tests will all be integers.

    That's strange. The n in the random tests shouldn't be integral:

    n = Math.random() * 20 + 0.5;
    

    Either way, n was never meant to be integral.

  • Custom User Avatar

    I slightly modified the description in your way but I can't make that everybody takes good care of the description:-) Thanks for your post.

  • Custom User Avatar

    Maybe you are right but it is explicitely said:

    In other words we must find x such as n choose x = m (1) for a given m and a given n...

    which is an equation and not an inequation as far as I know:-) I think that the example with 35 posters and 7 colors enlightens that.

  • Custom User Avatar

    Good point. It seems the tests are locked now, unfortunately.