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

More By Author:

Check out these other kata created by PG1

Stats:

CreatedSep 27, 2016
PublishedSep 27, 2016
Warriors Trained225895
Total Skips15763
Total Code Submissions373840
Total Times Completed155284
JavaScript Completions64286
C# Completions6631
F# Completions240
C Completions2631
Python Completions45952
PHP Completions3721
Ruby Completions3004
Haskell Completions1034
Crystal Completions38
C++ Completions9282
Java Completions11639
NASM Completions66
TypeScript Completions2309
Julia Completions106
Racket Completions47
Swift Completions1956
Elixir Completions232
Clojure Completions210
CoffeeScript Completions26
R Completions202
COBOL Completions24
Go Completions2047
Rust Completions1500
SQL Completions1995
D Completions19
Perl Completions89
Scala Completions100
Lua Completions58
Total Stars1419
% of votes with a positive feedback rating92% of 9720
Total "Very Satisfied" Votes8296
Total "Somewhat Satisfied" Votes1257
Total "Not Satisfied" Votes167
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • PG1 Avatar
  • bkaes Avatar
  • GiacomoSorbi Avatar
  • suic Avatar
  • samhstn Avatar
  • donaldsebleung Avatar
  • Chrono79 Avatar
  • Dentzil Avatar
  • kazk Avatar
  • user5036852 Avatar
  • Matteo.B Avatar
  • lilsweetcaligula Avatar
  • Voile Avatar
  • mitron6 Avatar
  • brunz36 Avatar
  • Souzooka Avatar
  • rsa Avatar
  • giannismach Avatar
  • user9644768 Avatar
  • hobovsky Avatar
  • uniapi Avatar
  • stellartux Avatar
  • blibblob Avatar
  • trashy_incel Avatar
  • username0 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • Heiss Avatar
  • jmh0036 Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
Ad