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 1
s and 0
s.
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
Similar Kata:
Stats:
Created | Nov 5, 2015 |
Published | Nov 5, 2015 |
Warriors Trained | 55431 |
Total Skips | 1385 |
Total Code Submissions | 102010 |
Total Times Completed | 39772 |
JavaScript Completions | 14598 |
Haskell Completions | 498 |
Python Completions | 12875 |
Ruby Completions | 2528 |
CoffeeScript Completions | 65 |
C# Completions | 2162 |
Java Completions | 5828 |
Elixir Completions | 206 |
Swift Completions | 1673 |
F# Completions | 82 |
Racket Completions | 26 |
Crystal Completions | 17 |
C Completions | 343 |
COBOL Completions | 6 |
Rust Completions | 215 |
TypeScript Completions | 238 |
Scala Completions | 17 |
Total Stars | 441 |
% of votes with a positive feedback rating | 93% of 4250 |
Total "Very Satisfied" Votes | 3716 |
Total "Somewhat Satisfied" Votes | 468 |
Total "Not Satisfied" Votes | 66 |