← 返回 meta 的题目列表Generate All Subsets (Power Set) of {'a', 'b', 'c'}
类型:online_judge
meta
Given a set containing characters 'a', 'b', and 'c', generate all possible subsets (power set).
The output should include the empty set and every possible subset, where the order of characters within the subsets does not affect the uniqueness of the combination. For example, the power set of {'a', 'b', 'c'} includes:
{}
{'a'}
{'b'}
{'c'}
{'a', 'b'}
{'a', 'c'}
{'b', 'c'}
{'a', 'b', 'c'}
Example
Input
['a', 'b', 'c']