Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 620 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 620 Bytes

Dashatize it

View on Codewars

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'
dashatize(274) -> '2-7-4'
dashatize(6815) -> '68-1-5'
dashatize(274) -> '2-7-4'
dashatize(6815) -> '68-1-5'
dashatize(274) -> '2-7-4'
dashatize(6815) -> '68-1-5'

Timeline

  • Created: 2016-11-08
  • Published: 2016-11-08
  • Approved: 2016-11-10
  • Completed: 2019-01-29