7 kyu
Insert dashes
5,086 of 9,133joh_pot
Description:
Write a function that takes an integer num
(num >= 0
) and inserts dashes ('-'
) between each two odd digits in num
.
Examples
454793 ---> "4547-9-3"
0 ---> "0"
1 ---> "1"
13579 ---> "1-3-5-7-9"
86420 ---> "86420"
Strings
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Jul 3, 2015 |
Published | Jul 3, 2015 |
Warriors Trained | 15027 |
Total Skips | 917 |
Total Code Submissions | 27625 |
Total Times Completed | 9133 |
JavaScript Completions | 5086 |
CoffeeScript Completions | 35 |
Python Completions | 2390 |
Ruby Completions | 578 |
C# Completions | 385 |
Java Completions | 826 |
C Completions | 65 |
COBOL Completions | 3 |
Total Stars | 181 |
% of votes with a positive feedback rating | 93% of 1086 |
Total "Very Satisfied" Votes | 942 |
Total "Somewhat Satisfied" Votes | 127 |
Total "Not Satisfied" Votes | 17 |