|
|
back to boardBF to precalculate Posted by Mesh 1 Jul 2008 22:48 I think the easiest way is to precalculate trough Brute Force a table containing the values, hard-code it, and simply give back A[ n ][ k ] :D Plus, the solution will run fast as hell XD Re: BF to precalculate Posted by guana 19 Jul 2008 23:00 You can do that with problems that have small values of n and k, but it'll run just as fast with a good algorithm. If you did it that way you have not actually solved the problem. |
|
|