Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   [ASK] Algoritma permutasi (https://forum.ceriwis.com/showthread.php?t=573225)

Guesuper 20th November 2011 01:25 AM

[ASK] Algoritma permutasi
 

Semoga ga salah kamar dan ga :repost:



gan..

Ane mau tanya ni.. Yang tau algoritma permutasi array, bantu ane gan.. Ane pake C++(tapi belum bgitu menguasai STL/Standar Template Library), tapi bisa juga pake pascal atau C. Plis gan..

Misal

int Data[]={1,2,3}

Nnti outputnya

1 2 3

1 3 2

2 1 3

2 3 1

3 1 2

3 2 1.

</div>


All times are GMT +7. The time now is 11:41 AM.