Find All Subsets of a Set

Find all subsets of a given set of integers.

Statement

Given a set of integers, find all possible subsets within the set.

Example

For the given set of integers:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.