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…