According to the definition of Permutation , String is a permutation of another string if and only if all characters in the first string are also in the second string.
Example : "answer"is a permutation "awerns".
So, to write an algorithm that checks if one line is a permutation of another line, all you have to do is:
:
, , , Quick Sort Merge Sort, 