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.
can any tell me wich are the conditions for the loop in this way?
its a best way
This comment is hidden because it contains spoiler information about the solution
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.
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.
Description included more or less straight-up description of algorithm; not too interesting then to implement it.