CentOS 7一键部署3主3从Redis集群的Docker脚本工具包
2026/6/7 8:54:11
funccombine(nint,kint)[][]int{ans:=make([][]int,0)vardfsfunc(startint)path:=make([]int,0)dfs=func(startint){iflen(path)==k{tmp:=make([]int,k)copy(tmp,path)ans=append(ans,tmp)return}fori:=start;i<=n;i++{path=append(path,i)dfs(i+1)path=path[:len(path)-1]}}dfs(1)returnans}
之后我会持续更新,如果喜欢我的文章,请记得一键三连哦,点赞关注收藏,你的每一个赞每一份关注每一次收藏都将是我前进路上的无限动力 !!!↖(▔▽▔)↗感谢支持!