Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Re: Java algorithm to print all the combination of the integer array

    Are you searching for combinations or permutations?
    This looks like permutations: 123,132,231,213,312,321

    What code have you tried?
  2. Re: Java algorithm to print all the combination of the integer array

    What did google say? It usually has algorithms for common problems like this one.
  3. Re: Java algorithm to print all the combination of the integer array

    I think you are asking for:
    number of permutations of n distinct objects is n×(n − 1)×(n − 2)×⋯×2×1, which is commonly denoted as "n factorial" and written "n!".
  4. Re: Java algorithm to print all the combination of the integer array

    Would this do it:
    Use all digits one at a time in first position
    use remaining digits one at a time in next position
    etc until no digits left
  5. Re: Java algorithm to print all the combination of the integer array

    What have you tried?
Results 1 to 5 of 5