LEETCODE
UNLOCKED
Problems
Donate
Premium
Lexicographically Smallest Palindromic Permutation Greater Than Target
Solution Code
Video Guide
Leetcode Daily
Time Complexity
O(
n|Σ| × (n + |Σ|
)
Space Complexity
O(
n + |Σ|
)