Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 207 Bytes

(8 kyu) Fake Binary.md

File metadata and controls

5 lines (3 loc) · 207 Bytes

Fake Binary (8 kyu)

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.

Note: input will never be an empty string