8 kyu
Fake Binary
64,286 of 155,284PG1
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 | 225895 |
Total Skips | 15763 |
Total Code Submissions | 373840 |
Total Times Completed | 155284 |
JavaScript Completions | 64286 |
C# Completions | 6631 |
F# Completions | 240 |
C Completions | 2631 |
Python Completions | 45952 |
PHP Completions | 3721 |
Ruby Completions | 3004 |
Haskell Completions | 1034 |
Crystal Completions | 38 |
C++ Completions | 9282 |
Java Completions | 11639 |
NASM Completions | 66 |
TypeScript Completions | 2309 |
Julia Completions | 106 |
Racket Completions | 47 |
Swift Completions | 1956 |
Elixir Completions | 232 |
Clojure Completions | 210 |
CoffeeScript Completions | 26 |
R Completions | 202 |
COBOL Completions | 24 |
Go Completions | 2047 |
Rust Completions | 1500 |
SQL Completions | 1995 |
D Completions | 19 |
Perl Completions | 89 |
Scala Completions | 100 |
Lua Completions | 58 |
Total Stars | 1419 |
% of votes with a positive feedback rating | 92% of 9720 |
Total "Very Satisfied" Votes | 8296 |
Total "Somewhat Satisfied" Votes | 1257 |
Total "Not Satisfied" Votes | 167 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |