+ 1
We have a string we have to return the minimum length of string for which tra saction id is made
like if we give the input zbzczbz in this case minimum length is 2 because zb having a character which is present in zc and so on... some examples:- input-zbzczbz output-2 input-bbbbbb output-1 input-zbczxaz output -3 input-zbcde output-3 in last case output is 3 because c is the character which is preseng in both zbc and cde so yhe length is 3.
1 Answer
0
I did not understand your question. Can you explain more clearly?