Back
Close
  • 4363

What will I learn?

StringsEncodingLoopsConditions

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

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.

Solve it

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