8 kyu
Fake Binary
63,748 of 153,551PG1
Description:
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
Fundamentals
Strings
Arrays
Similar Kata:
Stats:
Created | Sep 27, 2016 |
Published | Sep 27, 2016 |
Warriors Trained | 223497 |
Total Skips | 15587 |
Total Code Submissions | 370361 |
Total Times Completed | 153551 |
JavaScript Completions | 63748 |
C# Completions | 6561 |
F# Completions | 240 |
C Completions | 2596 |
Python Completions | 45325 |
PHP Completions | 3694 |
Ruby Completions | 2991 |
Haskell Completions | 1026 |
Crystal Completions | 37 |
C++ Completions | 9148 |
Java Completions | 11497 |
NASM Completions | 66 |
TypeScript Completions | 2269 |
Julia Completions | 105 |
Racket Completions | 47 |
Swift Completions | 1937 |
Elixir Completions | 231 |
Clojure Completions | 208 |
CoffeeScript Completions | 25 |
R Completions | 202 |
COBOL Completions | 24 |
Go Completions | 1982 |
Rust Completions | 1470 |
SQL Completions | 1960 |
D Completions | 18 |
Perl Completions | 89 |
Scala Completions | 98 |
Lua Completions | 53 |
Total Stars | 1412 |
% of votes with a positive feedback rating | 92% of 9666 |
Total "Very Satisfied" Votes | 8250 |
Total "Somewhat Satisfied" Votes | 1250 |
Total "Not Satisfied" Votes | 166 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |