|
|
back to boardI am using a brute force, but it gives me time limit exceed on case 4, which is n = 8. can anyone tell me how to speed up this, thanks! hehe,, found a good solution to it... problem solved! So Am I - how did you improve the performance ? How did you speed it up? 1.. try brute force to get the total number of sums of digits within n/2 2.. try DP, I think it will be similar to problem 1036 Edited by author 16.12.2011 18:52 |
|
|