Skip to content

Files

Latest commit

8336045 · Feb 3, 2019

History

History

dashatize-it

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 3, 2019
Feb 3, 2019

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