Back
Close
  • 7151

What will I learn?

Solving this puzzle makes you convert characters into their digital values and also digits into binary values.

You have to go through a list of bits of a digital value.

External resources

Bit maskBit shiftsAscii table

Learning Opportunities

This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.

Statement

Your program must encode a string into a series of zeros.

A string is an encoded form of digital values and you have to transform those values into a new format.

A higher resolution is required to access the IDE

Story

Binary is good! But unary is much better!

Test your encoding skills in this easy puzzle where you will be asked to transform a string into a “unary” string such as 0 00 000 0...

codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants