Editorial for CPC '21 Contest 1 P0 - AQT and Alphabet


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: Plasmatic

One way to solve this problem is to loop through all the letters from a to z, and check if any of them are not contained within the string S. Once we find a letter, we will break from the loop and output it.

As we are looping in alphabetical order, this guarantees that the first letter we find will be the lowest alphabetically.


Comments

There are no comments at the moment.