The explanation of the question is not very clear. I think the question asks us to find the longest substring using no more than "n" keys. So, n is an input.
Posts made by uabenjamin
RE: Given n keys and a string. Find the maximum substring which uses less numbers of keys.