Minimum Changes for a Palindromic Periodic Password

Given a lowercase password password of length n and a positive integer k, where k divides n.

You may replace any character with any lowercase English letter. Find the minimum number of repl...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: