Question: Problem statement Send feedback You are given a string ' S ' of length ' N ' and an integer ' K ' . '
Problem statement
Send feedback
You are given a string S of length N and an integer KK is a divisor of N
Suppose you break the string into M subarrays where MNK ie
The first substring S is S KJ
The second substring S is SK KJ
The Mth substring is SM is SM K M KJ
You are allowed to do the following operation:
Choose any index i of the string S
Replace it with any lowercasecharacter
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
