LeetCode | 子集
Java实现 LeetCode 713 乘积小于K的子数组(子集数量+双指针)
713. 乘积小于K的子数组 给定一个正整数数组 nums。 找出该数组内乘积小于 k 的连续的子数组的个数。 示例 1: 输入:
日期 2023-06-12 10:48:40Java实现 LeetCode 698 划分为k个相等的子集(递归)
698. 划分为k个相等的子集 给定一个整数数组 nums 和一个正整数 k,找出是否有可能把这个数组分成 k 个非空子集,其总和
日期 2023-06-12 10:48:40Java实现 LeetCode 698 划分为k个相等的子集(递归)
698. 划分为k个相等的子集
日期 2023-06-12 10:48:40Java实现 LeetCode 368 最大整除子集
368. 最大整除子集 给出一个
日期 2023-06-12 10:48:40[LeetCode] 78. 子集 ☆☆☆(回溯)
描述 给定一组不含重复元素的整数数组 nums,返回该数组所有可能的子集(幂集)。 说明:解集不能包含重复的子集。 示例: 输入: nums = [1,2,3]输出:[ [3], [1], [2], [1,2,3], [1,3], [2,3], [1,2], []] 解析 和求字符串的全排序思路一样,
日期 2023-06-12 10:48:40leetcode 78. 子集 js 实现
给你一个整数数组 nums ,数组中的元素 互不相同 。返回该数组所有可能的子集(幂集)。 解集 不能 包含重复的子集。你可以按 任意顺序 返回解集。 示例 1: 输入:nums = [1,2,3]输出:[[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]示例 2: 输入:nums = [0]输出:[[],[0]] 提示: 1 <= n
日期 2023-06-12 10:48:40【Leetcode刷题Python】416. 分割等和子集
1 题目 给你一个 只包含正整数 的 非空 数组 nums 。请你判断是否可以将这个数组分割成两个子集,使得两个子集的元素和相等。 示例 1: 输入:nums =
日期 2023-06-12 10:48:40LeetCode高频题78. 子集,返回该数组所有可能的子集(幂集),生成所有的子序列
LeetCode高频题78. 子集,返回该数组所有可能的子集(幂集),生成所有的子序列 提示:本题是系列LeetCode的150道高频题,
日期 2023-06-12 10:48:40leetCode 78.Subsets (子集) 解题思路和方法
Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. For
日期 2023-06-12 10:48:40[LeetCode] 416. Partition Equal Subset Sum 相同子集和分割
Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal. Note: Both the array si
日期 2023-06-12 10:48:40[LeetCode] 90. Subsets II 子集合之二
Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contai
日期 2023-06-12 10:48:40