I have a code like
string code = "AABBDDCCRRFF";
In this code, I want to retrieve only distinct characters
The Output should be like:
ANS: ABDCRF
string code = "AABBDDCCRRFF"; string answer = new String(code.Distinct().ToArray());
1.4m articles
1.4m replys
5 comments
57.0k users