Format:
Recent snippets matching tags of powerset
class PowerSet { static void Main(string[] args) { var set = Enumerable.Range(0, 8); foreach (var subSet in PowerSets(set)) Console.WriteLine(String.Join(" ", subSet)); } private static IEnumerable<IEnumerable<T>> PowerSets<T>(IEnumerable<T> masterSet)
145 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
