Free written solution

Smallest Palindromic Rearrangement I (LeetCode 3517): Solution and Explanation

Given a palindrome, rearrange its letters into the lexicographically smallest palindrome possible.

Read the intuition, approach, code and complexity →