Tag: Backtracking
Program to print all permutations of a given string In Javascript
Below are the permutations of string ABC.ABC ACB BAC BCA CBA CAB This can be solved using recursive algorithm and most asked question in interviews, Algorithm: BacktrackingTime Complexity: O(n*n!)