Frage im Vorstellungsgespräch bei Amazon

Given a string, output all its permutations

Antwort im Vorstellungsgespräch

Anonym

10. Feb. 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