#41 Dashatize it
Given a number, return a string with dash'-'marks before and after each odd integer, but do not begin or end the string with a dash mark.
Ex:
dashatize(274) -> '2-7-4'
dashatize(6815) -> '68-1-5'
'매일매일개발 > Codewars' 카테고리의 다른 글
codewars #44 Bouncing Balls (6kyu) (0) | 2018.05.18 |
---|---|
codewars #42 Delete occurrences of an element if it occurs more than n times (6kyu) (0) | 2018.05.16 |
codewars #40 What's a Perfect Power anyway? (5kyu) (1) | 2018.05.14 |
codewars #39 Help the bookseller ! (6kyu) (1) | 2018.05.10 |
codewars #38 Highest Scoring Word (6kyu) (1) | 2018.05.09 |