摘要:
print all unique solution to split number n, given choice of 1 3 5 10for example if n is 4{1, 1, 1, 1}{1, 3}思路:用DFS肯定可以求解,但需要遍历所有可能,进行剪纸之后用递推实现。主要剪枝思想... 阅读全文
摘要:
常见错误:' '.join(list): it need to guarantee the element of list is string, so it it better it strlist = ''.join(str(v) for v in list)str.split(" ") just... 阅读全文