摘要: 46. 全排列 题目链接 dfs 用marked标记这个数是否被选过 用now存储已选中的数 class Solution { List<List<Integer>> ans; public List<List<Integer>> permute(int[] nums) { ans = new Ar 阅读全文
posted @ 2021-03-03 10:25 一天到晚睡觉的鱼 阅读(40) 评论(0) 推荐(0)