Created
December 9, 2016 08:12
-
-
Save cwdoh/958bc045b50a00cd5f16861e9ab90472 to your computer and use it in GitHub Desktop.
print '1 234 56 7'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 조건: | |
// 입력 없음 | |
// 출력값: 1 234 56 7 | |
let i = 1 | |
[1, 3, 2, 1].map(c => { let o =''; while (c--) { o += i++ } return o }).join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment