How to find unique combination of two values in a string c++

how to find unique combination of two values in a string c++

eg:- In these strings:-

xy

xyxxy

yy

I have to find the no. of unique combinations of x and y together.

eg:-

in xyxxy

there are 2 such combinations.

This is my code for that Q:-

Please help me in solving this…

@g.bhanuteja23 bro i am telling you for the third time please try to understand. ongoing contest discussions are not allowed .
close the doubt

1 Like

Ok Sir. But you are able to figure this out everytime. Are you also doing the same June Challenge?

I will close the doubt anyway.

@g.bhanuteja23 just have read the questions