Skip to content

Python Recursion powerset of array fix #19

@anuj2110

Description

@anuj2110

use the following as the base condition, the former one will pass the subSet as reference and all will be empty
if i == len(v):
ans.append(subSet.copy())
return

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions