Power Set

Medium

📝 Description

Generate all subsets of a list

Input Format

List of elements

Output Format

All possible subsets

Constraints

List size ≤ 10

🔍 Sample Input

1 2 3
            

✅ Sample Output

[], [1], [2], [3], [1,2], [1,3], [2,3], [1,2,3]
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run