Purple Hiring Challenge Off-Campus | HackerEarth May 2026 | K-Step Bit Decryption
Question · Posted Jun 2026
K-Step Bit Decryption You are part of the Cyber Security team in your company, working on a decryption algorithm that transforms a number into the count of set bits (1s) in its binary representation. This process can be repeated multiple times, and each time the number is replaced by the number of set bits in its binary form. A number is considered a possible decryption if if it can be reduced to 1 after to 1 after applying this decryption ...
The full answer & interview discussion are available to premium members.
Log in Create a free account