algorithms.tutorialhorizon.com
Find number of Distinct Permutations OR Anagrams of a String. | Algorithms
Given a string, find the number of distinct permutations or anagrams of that string. String x = "abc" Output: 6 (abc, acb, bac, bca, cab, cba)