---
title: "Discussion on \"Subsets\" | Hashnode"
description: "Discussion on \"Subsets\". Explain the Problem\nGiven an integer array nums of unique elements, return all possible subsets (the power set).\nThe solution set must not contain duplicate subsets and the subsets can be returned in any order.\nExample:\nInput: nums = [1, 2, 3]\nOutput..."
url: "https://hashnode.com/posts/subsets/667c841d7d997415ffb03987"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Subsets](https://lietcode.hashnode.dev/subsets?utm_source=hashnode&utm_medium=feed)

Explain the Problem Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets and the subsets can be returned in any order. Example: Input: nums = \[1, 2, 3\] Output...

Jun 26, 2024 · 3 min read · lietcode.hashnode.dev  
Read the article

-   [#backtracking](https://hashnode.com/tag/backtracking)

## Written by

[Abhi](https://hashnode.com/@lietcode)

@lietcode

  
[View profile](https://hashnode.com/@lietcode)

Let's crack the interviews

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
