Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a simple cascading solution to generate a Power Set #975

Merged
merged 4 commits into from
Jan 6, 2023

Conversation

trekhleb
Copy link
Owner

@trekhleb trekhleb commented Jan 6, 2023

We already have Bitwise and BackTracking solutions.

However, the Cascading solution described in this PR might be easier to understand. It is just about two for loops, with no recursion.

@trekhleb trekhleb merged commit 65e4a7c into master Jan 6, 2023
@trekhleb trekhleb deleted the power-set-cascading branch January 6, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant