1.

Given two strings, write a method to decide if one is a permutation of theother

Answer»

pls mark as BRAINLIEST friendExplanation:Check if two strings are PERMUTATION of each otherWrite a function to check whether two given strings are Permutation of each other or not. A Permutation of a string is another string that contains same CHARACTERS, only the order of characters can be different. For EXAMPLE, “abcd” and “dabc” are Permutation of each other.We strongly recommend that you click here and practice it, before moving on to the solution.Method 1 (Use Sorting)1) Sort both strings2) COMPARE the sorted string



Discussion

No Comment Found