Leaving LeetCode
You're leaving LeetCode for an external site that may pose security risks. Continue?
https://leetcode.com/problems/shortest-palindrome/solutions/5813764/2-pointer-on2-on-505-4216/
Continue