Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van AI
0

How to get the all possible combinations in an array.

There is array1 with 5 element and we have to select 3 Out of 5 elements from array1 such that all possible combination from array1 is in array 2(no repetition of elements). Eg i/p array1={1, 2, 3, 4} o/p array2={{1, 2, 3},{2, 3, 4}{3, 4, 1}{4, 1, 2}}

pythonc++javacpython3cppalgorithm
9th Feb 2020, 4:28 AM
հíʍɑղՏհմ
հíʍɑղՏհմ - avatar
1 Antwoord
+ 1
https://code.sololearn.com/cviPxpwf2te0/?ref=app https://code.sololearn.com/cK8udil2RGsu/?ref=app https://code.sololearn.com/cVuDQWAA0JiZ/?ref=app
9th Feb 2020, 4:49 AM
Oma Falk
Oma Falk - avatar

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
3 Votes
Guys I don't know anything about cooding who can help me pls
1 Votes
Why can’t I use double “ in python?
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
2 cases not correct what's the problem
2 Votes
You’re free to give me your advice! 🚨
1 Votes
Salut tout le monde
1 Votes