Fetching data...
This may take a moment
Back
1997. Next Palindrome Using Same Digits
Hard
Two Pointers
String
Solve on LeetCode
View Solutions
Description
Hints
Hint 1
Is it possible to swap one character in the first half of the palindrome to make the next one?
Hint 2
Are there different cases for when the length is odd and even?
Similar Questions
Next Greater Element III
Medium
Find the Closest Palindrome
Hard
Statistics
Acceptance
54.0%
Submissions
12,644
Accepted
6,834