Skip to content

Code challenge

Subsets

Problem

Given an array `nums` of distinct integers, return all possible subsets (the power set), in any order.
Editor · javascript4 lines · 47 chars
Back to topic
Subsets — Backtracking · Aevrofy