Quote:
Originally Posted by KnifeMissile
If this is, indeed, the problem you're trying to solve then your printed algorithm is totally naive and no one has come close to solving it.
|
I did solve it in that way: _any_ combination. Although i didnt use recursion, just 3 nested for loops and a bit of logic. It took 16 lines of code (including }'s on single lines) inside the main method.