摘要: 题目来源 LeetCode_78 题目描述 给你一个整数数组 nums ,数组中的元素 互不相同 。返回该数组所有可能的子集(幂集)。 解集 不能 包含重复的子集。你可以按 任意顺序 返回解集。 示例 1: 输入: nums = [1,2,3] 输出: [[],[1],[2],[1,2],[3],[ 阅读全文
posted @ 2021-03-31 20:52 Garrett_Wale 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 136. 只出现一次的数字 LeetCode_136 题目描述 相似题目:剑指 Offer 56 - I. 数组中数字出现的次数 代码实现 class Solution { public int singleNumber(int[] nums) { int n = nums.length; int 阅读全文
posted @ 2021-03-31 20:17 Garrett_Wale 阅读(49) 评论(0) 推荐(0) 编辑