摘要: const flattenArray = arr => { const flattened = [].concat(...arr); return flattened.some(v => Array.isArray(v))?flattenArray(flattened):flattened; } const arr = [1,[2,3,[3.1,3.2]],4]; c... 阅读全文
posted @ 2018-06-21 21:00 Coca-code 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: DP ( Dynamic plan) ,即动态规划 DFS(Depth-First-Search ), 深度优先搜索 阅读全文
posted @ 2018-06-21 09:19 Coca-code 阅读(470) 评论(0) 推荐(0) 编辑