6 kyu

Dashatize it

5,477 of 15,120Dragoris

Description:

Given an integer, return a string with dash '-' marks before and after each odd digit, but do not begin or end the string with a dash mark.

Ex:

274 -> '2-7-4'
6815 -> '68-1-5'
Strings
Arrays
Regular Expressions
Fundamentals

More By Author:

Check out these other kata created by Dragoris

Stats:

CreatedNov 8, 2016
PublishedNov 8, 2016
Warriors Trained33822
Total Skips6051
Total Code Submissions103655
Total Times Completed15120
JavaScript Completions5477
Crystal Completions31
CoffeeScript Completions19
PHP Completions1087
TypeScript Completions721
Python Completions4899
Swift Completions697
Java Completions1857
Ruby Completions351
Rust Completions247
C Completions35
Scala Completions9
Total Stars504
% of votes with a positive feedback rating87% of 1915
Total "Very Satisfied" Votes1487
Total "Somewhat Satisfied" Votes362
Total "Not Satisfied" Votes66
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Dragoris Avatar
  • natan Avatar
  • depperm Avatar
  • brunolm Avatar
  • PG1 Avatar
  • naithar Avatar
  • imjasonmiller Avatar
  • kazk Avatar
  • docgunthrop Avatar
  • narayanswa30663 Avatar
  • pmatseykanets Avatar
  • metagn Avatar
  • markus.benko Avatar
  • cliffstamp Avatar
  • RobsonMoon Avatar
  • trashy_incel Avatar
  • user8436785 Avatar
  • WestwardLand968 Avatar
  • ejini战神 Avatar
  • __eloise__ Avatar
  • KayleighWasTaken Avatar
  • saudiGuy Avatar
Ad