标签:io os for sp on c amp size res
print all unique solution to split number n, given choice of 1 3 5 10
for example if n is 4
{1, 1, 1, 1}
{1, 3}
思路:用DFS肯定可以求解,但需要遍历所有可能,进行剪纸之后用递推实现。主要剪枝思想,后一个数一定要大于等于前一个数
print all unique solution to split number n
标签:io os for sp on c amp size res
原文地址:http://www.cnblogs.com/purejade/p/3964977.html