Given a set of distinct integers, this algorithm will return all possible subsets. For example, if the input is [1,2,3], the output will be [[],[1],[ 2],[3],[1,2],[1,3],[2,3],[1,2,3]].

A.I. Evaluation of the Solution

This is a great solution! It is complete, and correctly solves the problem. The approach is also very elegant.

Evaluated at: 2022-12-07 10:15:51