摘要:
全排列: s=['a','b','c'] from copy import copy ret=[] len_input=len(s) def changes(s,start,end): if end <1: ret.append( copy(s)) return for i in range(end 阅读全文
摘要:
找零钱: def doChange(lingqian,change,ret_num,ret_coin): for to_change in range(change+1): ret_num[to_change]=to_change for i in [j for j in lingqian if j 阅读全文