Amazon Interview Question

Given a string, output all its permutations

Interview Answer

Anonymous

Feb 10, 2013

public class StringPerm { public static void Permutation(String strsub, String str) { int length=str.length(); //System.out.println(length); if(length<=1) System.out.println(strsub+str); else { for(int i=0;i