I need to write a permutation algorithm in ABAP language. For a given set of letters, I need to determine the unique permutations as follows:
Example set includes [A, B, C, D]
Unique permutaions include: A, B, C, D, AB, AC, AD, BC, BD, CD, ABC, ACD, BCD, ABCD.
Note: AB = BA.
2007-08-06
03:15:15
·
1 answers
·
asked by
Dieselnc
1
in
Computers & Internet
➔ Programming & Design
Thanks for the answer McFate! I'm not familiar w/Java so it’s somewhat difficult to follow your example. Can you explain how the solution would look if the results were in ascending order?
2007-08-08
16:51:37 ·
update #1