Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Encoded String codechef January long challenge solution || Encoded String codechef January long challenge solution Editorial 2021

 Encoded String codechef January long challenge solution || Encoded String codechef January long challenge solution Editorial 2021-

Problem statement-

An encoder encodes the first 16 lowercase English letters using 4 bits each. The first bit (from the left) of the code is 0 if the letter lies among the first 8 letters, else it is 1, signifying that it lies among the last 8 letters. The second bit of the code is 0 if the letter lies among the first 4 letters of those 8 letters found in the previous step, else it's 1, signifying that it lies among the last 4 letters of those 8 letters. Similarly, the third and the fourth bit each signify the half in which the letter lies.

For example, the letter j would be encoded as :

  • Among (a,b,c,d,e,f,g,h | 


This post first appeared on Technical Keeda, please read the originial post: here

Share the post

Encoded String codechef January long challenge solution || Encoded String codechef January long challenge solution Editorial 2021

×

Subscribe to Technical Keeda

Get updates delivered right to your inbox!

Thank you for your subscription

×