Search:

Type: Posts; User: ueg1990

Search: Search took 0.10 seconds.

  1. Replies
    11
    Views
    9,676

    Re: permutations of a string using iteration

    if u have a string "abc" then the output should be: abc, acb,bac,bca,cba,cab
  2. Replies
    11
    Views
    9,676

    Re: permutations of a string using iteration

    public static void combString(String s) {
    char[] a = new char[s.length()];
    //String temp = "";
    for(int i = 0; i < s.length(); i++) {
    a[i] = s.charAt(i);
    }
    for(int i = 0; i < s.length(); i++) {...
  3. Replies
    11
    Views
    9,676

    permutations of a string using iteration

    im trying to find permutation of a given string but i want to use iteration. The recursive solution i found online and i do understand it but converting it to an iterative solution is really not...
Results 1 to 3 of 3