private static void Main() { Console.Setup(); Console.PrintHeading("Task 5 Print Ordered Subsets of K from Set of N"); string[] mainSet = { "hi", "a", "b" }; int subsetLength = 2; var printer = new ResultPrinter(Console); CombinatoricsGen<string> combo = new PermutationsWithRepetition<string>(subsetLength, mainSet); printer.DispalyResults(mainSet, subsetLength, combo); }
private static void Main() { Console.Setup(); Console.PrintHeading("Task 5 Print Ordered Subsets of K from Set of N"); string[] mainSet = { "hi", "a", "b" }; int subsetLength = 2; var printer = new ResultPrinter(Console); CombinatoricsGen <string> combo = new PermutationsWithRepetition <string>(subsetLength, mainSet); printer.DispalyResults(mainSet, subsetLength, combo); }