Please go through this problem 716B. My idea is : 1. if length of string in less than 26 , print "-1" and return ; 2. calculate frequency of first 26 characters and then see how many characters are left out and how many '?' are available . 3. If left out == '?' it is possible.
- I tried it but failed on 18th test caseYour text to link here...? Could you help me with my implementation. Or if you have more elegant implementation please suggest me.