xinyu04

导航

2022年8月7日 #

LeetCode 47 Permutations II 可重集全排列

摘要: Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order. Solution 对于有重复元素的全排列,我们用 $se 阅读全文

posted @ 2022-08-07 17:28 Blackzxy 阅读(14) 评论(0) 推荐(0) 编辑

LeetCode 90 Subsets II 回溯

摘要: Given an integer array nums that may contain duplicates, return all possible subsets (the power set). The solution set must not contain duplicate subs 阅读全文

posted @ 2022-08-07 04:53 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑

LeetCode 797 All Paths From Source to Target 回溯

摘要: Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all possible paths from node 0 to node n - 1 and return them in any orde 阅读全文

posted @ 2022-08-07 02:59 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑