Ad
  • Custom User Avatar

    can any tell me wich are the conditions for the loop in this way?

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    I think the problem with 191/373 is that they required nargs >= 2; hence you had to work with the product of 373 and the other one, but correct me if I'm wrong.

  • Custom User Avatar

    Without the description there would be two types of people:

    • those who can (and want) to spend 1,2 maybe 4 hours working on combinatronics to derive working formulas (probably not optimal).

    • those going to wikipedia to find the straigth-forward description.

    The first approach is challenging and very interesting (I've done the NIM kata this way and really enjoed it) but does not correspond to a real life approach of a problem. If you want to reinvent the wheel you can but no one is asking you for that.

    I will remove the formulas to let people reinvent the wheel if they want but I will also give a link to wikipedia so that people are not bounded by an afternoon of combinatronics.

  • Custom User Avatar

    Description included more or less straight-up description of algorithm; not too interesting then to implement it.