Given a words consisting of distinct strings.
The string words[i] can be paired with the string words[j] if:
The string words[i] is equal to the reversed string of words[j].
words.length.
Return the maximum number of pairs that can be formed from the array words.
Note: Each string can belong to at most one pair.
Constraints:
words.length
words[i].length
words consists of distinct strings.
words[i] contains only lowercase English letters.
Given a words consisting of distinct strings.
The string words[i] can be paired with the string words[j] if:
The string words[i] is equal to the reversed string of words[j].
words.length.
Return the maximum number of pairs that can be formed from the array words.
Note: Each string can belong to at most one pair.
Constraints:
words.length
words[i].length
words consists of distinct strings.
words[i] contains only lowercase English letters.