摘要:
参考 Importing maven project 卡在%9不动 https://blog.csdn.net/weixin_43197380/article/details/89220337 阅读全文
posted @ 2020-04-15 21:49
cxc1357
阅读(796)
评论(0)
推荐(0)
摘要:
高阶函数 接受函数为参数,或者把函数作为结果返回的函数 View Code View Code 嵌套函数 封装内部函数 提高效率,比如阶乘函数先检查输入数据 闭包(closure) 外部函数返回一个函数 1 def nth_power(exponent): 2 def exponent_of(bas 阅读全文
posted @ 2020-04-15 20:46
cxc1357
阅读(144)
评论(0)
推荐(0)
摘要:
要求 整型数组,每个元素不相同,返回元素所有排列的可能 示例 [1,2,3] [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] 思路 树形问题,回溯法 实现 permute():生成所有排列 generatePermutation(): 阅读全文
posted @ 2020-04-15 07:54
cxc1357
阅读(176)
评论(0)
推荐(0)

浙公网安备 33010602011771号