littlepuppycoder
littlepuppycoder

Reputation: 1

Every possible combination

How can I obtain every possible combination for a dynamic sized set? can it be done without recursion or methods? I've been trying to figure out how to do it with just loops for the past hours and can't seem to come up with a solution.

Upvotes: 0

Views: 249

Answers (1)

CAFxX
CAFxX

Reputation: 30341

Quite a few methods can be found on the appropriate wikipedia page.

(note: this answer is overly generic because the OP doesn't go into any deep about what he needs)

Upvotes: 2

Related Questions