Available question text
Given a palindromic string s and integer k, return the k-th lexicographically smallest distinct palindromic permutation of s (or "" if fewer than k exist). The core challenge is to construct the palindrome by building its first half in lexicographic order while using combinatorial counts on multiset permutations (accounting for duplicate letters and a possible center char) to skip blocks without enumerating all permutations.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3518. Smallest Palindromic Rearrangement II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source