7 kyu
Insert dashes
5,110 of 9,184joh_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 | 15099 |
Total Skips | 917 |
Total Code Submissions | 27749 |
Total Times Completed | 9184 |
JavaScript Completions | 5110 |
CoffeeScript Completions | 35 |
Python Completions | 2407 |
Ruby Completions | 579 |
C# Completions | 390 |
Java Completions | 833 |
C Completions | 65 |
COBOL Completions | 3 |
Total Stars | 182 |
% of votes with a positive feedback rating | 92% of 1090 |
Total "Very Satisfied" Votes | 943 |
Total "Somewhat Satisfied" Votes | 130 |
Total "Not Satisfied" Votes | 17 |