+ 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.

24th Jan 2018, 5:10 PM
Nikhil Kohli
Nikhil Kohli - avatar
1 Answer
0
I did not understand your question. Can you explain more clearly?
28th Jan 2018, 6:17 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar