336. Palindrome Pairs
Hard
Input: words = ["abcd","dcba","lls","s","sssll"]
Output:
[[0,1],[1,0],[3,2],[2,4]]
Explanation:
The palindromes are ["abcddcba","dcbaabcd","slls","llssssll"]Input: words = ["bat","tab","cat"]
Output:
[[0,1],[1,0]]
Explanation:
The palindromes are ["battab","tabbat"]Last updated