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

Stats:

CreatedSep 27, 2016
PublishedSep 27, 2016
Warriors Trained223497
Total Skips15587
Total Code Submissions370361
Total Times Completed153551
JavaScript Completions63748
C# Completions6561
F# Completions240
C Completions2596
Python Completions45325
PHP Completions3694
Ruby Completions2991
Haskell Completions1026
Crystal Completions37
C++ Completions9148
Java Completions11497
NASM Completions66
TypeScript Completions2269
Julia Completions105
Racket Completions47
Swift Completions1937
Elixir Completions231
Clojure Completions208
CoffeeScript Completions25
R Completions202
COBOL Completions24
Go Completions1982
Rust Completions1470
SQL Completions1960
D Completions18
Perl Completions89
Scala Completions98
Lua Completions53
Total Stars1412
% of votes with a positive feedback rating92% of 9666
Total "Very Satisfied" Votes8250
Total "Somewhat Satisfied" Votes1250
Total "Not Satisfied" Votes166
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