Find all permutations of a String

Given a string, find all the permutations of the string. For example: Input String: abc Output: {bca, acb, abc, cba, bac, cab} Program: class Program { /*Function to print permutations of string This function takes three parameters: 1. String 2. Starting index of the string 3. Ending index of the string.*/ private static void permute(String […]

Read More