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
Thank you