• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu
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
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
Pointers cpp
2 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
1 Votes
Why can’t I use double “ in python?
0 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
Is pro worth the money ?
1 Votes
Coding for Cybersecurity
0 Votes
2 cases not correct what's the problem
1 Votes
Drawing images in java
2 Votes
You’re free to give me your advice! 🚨
0 Votes