8 kyu

Stringy Strings

14,598 of 39,772andrewMacmurray

Description:

write me a function stringy that takes a size and returns a string of alternating 1s and 0s.

the string should start with a 1.

a string with size 6 should return :'101010'.

with size 4 should return : '1010'.

with size 12 should return : '101010101010'.

The size will always be positive and will only use whole numbers.

Strings
Binary
Algorithms

Stats:

CreatedNov 5, 2015
PublishedNov 5, 2015
Warriors Trained55431
Total Skips1385
Total Code Submissions102010
Total Times Completed39772
JavaScript Completions14598
Haskell Completions498
Python Completions12875
Ruby Completions2528
CoffeeScript Completions65
C# Completions2162
Java Completions5828
Elixir Completions206
Swift Completions1673
F# Completions82
Racket Completions26
Crystal Completions17
C Completions343
COBOL Completions6
Rust Completions215
TypeScript Completions238
Scala Completions17
Total Stars441
% of votes with a positive feedback rating93% of 4250
Total "Very Satisfied" Votes3716
Total "Somewhat Satisfied" Votes468
Total "Not Satisfied" Votes66
Ad
Contributors
  • andrewMacmurray Avatar
  • jhoffner Avatar
  • cris Avatar
  • CrazyMerlyn Avatar
  • Jotha Avatar
  • NaMe613 Avatar
  • Brettm12345 Avatar
  • gttotev Avatar
  • OverloaD_UA Avatar
  • robertos Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • lilsweetcaligula Avatar
  • Voile Avatar
  • mitron6 Avatar
  • nizarjak Avatar
  • FArekkusu Avatar
  • Awesome A.D. Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • tobeannouncd Avatar
  • KayleighWasTaken Avatar
  • HartlIKS Avatar
Ad