【leetcode】336 Palindrome Pairs

題目 Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e.words[i] + words[j] is a palindrome. Example 1: Given word
相關文章
相關標籤/搜索