I am new in powershell but was wondering how do you get combination of given numbers without repetition ?
for e.g
$a = (1,2,3,4)
$n = 4
$k = 2
output :-
12
13
14
23
24
34
if K = 3 then
123
124
134
234
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just a quick solution for that particular case, I don’t see much value in it because I feel there are tools designed for such exercises… 😉