You are given an array of strings words indexed starting from
Two strings are considered similar if they consist of the exact same set of characters.
Return the total number of pairs words.length, where words[i] and words[j] are similar.
Constraints:
words.length
words[i].length
words[i] consists only of lowercase English letters.
You are given an array of strings words indexed starting from
Two strings are considered similar if they consist of the exact same set of characters.
Return the total number of pairs words.length, where words[i] and words[j] are similar.
Constraints:
words.length
words[i].length
words[i] consists only of lowercase English letters.