Encoded String codechef January long challenge solution || Encoded String codechef January long challenge solution Editorial 2021-
Problem statement-
An encoder encodes the first lowercase English letters using bits each. The first bit (from the left) of the code is if the letter lies among the first letters, else it is , signifying that it lies among the last letters. The second bit of the code is if the letter lies among the first letters of those letters found in the previous step, else it's , signifying that it lies among the last letters of those letters. Similarly, the third and the fourth bit each signify the half in which the letter lies.
For example, the letter would be encoded as :
- Among