Skip to content

Commit 1757659

Browse files
committed
Create README - LeetHub
1 parent dd706ef commit 1757659

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

0078-subsets/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<h2><a href="https://leetcode.com/problems/subsets/">78. Subsetsa>h2><h3>Mediumh3><hr><p>Given an integer array <code>numscode> of <strong>uniquestrong> elements, return <em>all possibleem> <span data-keyword="subset"><em>subsetsem>span> <em>(the power set)em>.p>
2+
3+
<p>The solution set <strong>must notstrong> contain duplicate subsets. Return the solution in <strong>any orderstrong>.p>
4+
5+
<p>&nbsp;p>
6+
<p><strong class="example">Example 1:strong>p>
7+
8+
<pre>
9+
<strong>Input:strong> nums = [1,2,3]
10+
<strong>Output:strong> [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]
11+
pre>
12+
13+
<p><strong class="example">Example 2:strong>p>
14+
15+
<pre>
16+
<strong>Input:strong> nums = [0]
17+
<strong>Output:strong> [[],[0]]
18+
pre>
19+
20+
<p>&nbsp;p>
21+
<p><strong>Constraints:strong>p>
22+
23+
<ul>
24+
  • 1 <= nums.length <= 10
  • 25+
  • -10 <= nums[i] <= 10
  • 26+
  • All the numbers of nums are unique.
  • 27+
    ul>

    0 commit comments

    Comments
     (0)