← ALL NOTES
Hash Table

1400. Construct K Palindrome Strings

Can you use all characters of s to form exactly k non-empty palindromes? The answer is a two-condition check derived from a fact about palindromes: a palindrome allows at most one character with odd…

Loading…