Question: You can change return type to void. just need help with the logic List allAnagrams (string input). An anagram of a string is just a
You can change return type to void. just need help with the logic
List allAnagrams (string input). An anagram of a string is just a permutation of the string. You must write a function that produces all anagrams of the input string in a list. The order does not matter. For example, if the input string was abc, the function should output a list containing the following strings: abc, acb, bac, bca, cab, cba
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
