Skip to content

Python Recursion powerset of array fix #19

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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