you are giving a string s of length n. the strung s consists of digits from 1-9. consider the string indexing to be 1 based you need to divide the string into blocks such as ith block contaims the element from the index ((i-1) *x+1) to min(N, (i*X)) both inclusive. a number is valid if it is gormed by choosing exactly ine digit from each block and placing the digits in the order of their block number
Answers
Answered by
0
Explanation:
I don't know the answer please try again
Similar questions