Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 190 Bytes

12-fake-binary.md

File metadata and controls

4 lines (3 loc) · 190 Bytes

Problem:

Given a string of digits, you should replace any digit below 5 with '0' and any digit 5 and above with '1'. Return the resulting string.

Solution