in

Triggered

Triggered | string-memes, class-memes, public-memes, private-memes | ProgrammerHumor.io
string-memes, class-memes, public-memes, private-memes | ProgrammerHumor.io

Content

public class Permuter private static void permute(int n, charlI a) if (n 0) System.out printIn(String value0f (a)) else for (int i 0; i n; i) permute(n 1, a) swap(a, n 2 0 ? i : 0, n) private static void swap(charlI a, int i, int j) char saved ai ail aljl ail saved ;