Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Palindrome Pairs
Hard
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Find all palindrome pairs in given list of words.
Sample Input:
["abcd","dcba","lls","s","sssll"]
Sample Output:
[[0,1],[1,0],[3,2],[2,4]]
Hints
Hint 1
Use hashmap for word lookups
Hint 2
Check all possible splits
Hint 3
Consider empty string case
Code Editor
Reset
Run
Save
Loading...