GO踩坑日记(一)二维slice
GO踩坑日记(一)二维slice
背景,leetcode 78 子集问题
func subsets(nums []int) [][]int {
//var ans [][]int = [][]int{}
ans := [][]int{}
path := []int{}
var dfs func(nums []int , path []int,start int)
dfs=func(nums []int,path []int,start int){
//track := make ([]int
原创
2021-03-30 16:25:03 ·
435 阅读 ·
3 评论