-
Completed at: 2023-03-30T05:06:51.811Z
-
Completed languages: javascript
-
Tags: Fundamentals, Strings, Arrays
-
Rank: 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