kadspark
BAN USER
Comments (3)
Followers (1)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
C#
public static void PrintCombinations(int[] arr, int r, int start, string prv)
{
if (r == 1)
while (start < arr.Length)
Console.Write(@"{0} {1}{2}", prv, arr[start++], Environment.NewLine);
else
while (start < arr.Length)
PrintCombinations(arr, r - 1, start + 1, string.Format(@"{0} {1}", prv, arr[start++]));
}
Page:
1
Reprchierusel, Applications Developer at Allegient
I am a Real-time captioner in the USA . Real-time captioning can be used for programs that do not have written ...
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Simple implementation in C#
}
- kadspark October 10, 2012