Distinct Characters Subsequence | CodeChef

I m getting WA.I couldn’t find the error. Can soneone help??
https://www.codechef.com/viewsolution/31958623

I think you are approaching wrong. You have to calculate total number of distinct characters in the string which will be at max 26 in this case.

You’ve misunderstood the question. A subsequence may not neccassarily be contigous.

thank you :slight_smile: :upside_down_face:

Thank you :upside_down_face: :slight_smile: