[자바스크립트로 구현한 알고리즘] Stringy Strings

남양주개발자

·

2016. 9. 17. 18:45

728x90
반응형


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.



728x90
반응형
그리드형

💖 저자에게 암호화폐로 후원하기 💖

아이콘을 클릭하면 지갑 주소가자동으로 복사됩니다