6 kyu
Split Strings
55,468 of 167,516jhoffner
Description:
Complete the solution so that it splits the string into pairs of two characters. If the string contains an odd number of characters then it should replace the missing second character of the final pair with an underscore ('_').
Examples:
* 'abc' => ['ab', 'c_']
* 'abcdef' => ['ab', 'cd', 'ef']
Regular Expressions
Strings
Algorithms
Similar Kata:
Stats:
Created | Apr 4, 2013 |
Published | Jul 25, 2013 |
Warriors Trained | 313764 |
Total Skips | 28080 |
Total Code Submissions | 467354 |
Total Times Completed | 167516 |
JavaScript Completions | 55468 |
Ruby Completions | 4662 |
CoffeeScript Completions | 225 |
PHP Completions | 6945 |
C# Completions | 9816 |
Python Completions | 57493 |
Haskell Completions | 1855 |
Elixir Completions | 585 |
Crystal Completions | 60 |
Go Completions | 4456 |
PowerShell Completions | 240 |
Scala Completions | 686 |
Julia Completions | 143 |
Clojure Completions | 308 |
C++ Completions | 8766 |
Java Completions | 16285 |
Prolog Completions | 31 |
Groovy Completions | 85 |
Rust Completions | 2097 |
COBOL Completions | 10 |
Factor Completions | 16 |
Swift Completions | 309 |
R Completions | 50 |
Dart Completions | 172 |
Kotlin Completions | 80 |
BF Completions | 4 |
Total Stars | 2216 |
% of votes with a positive feedback rating | 89% of 11929 |
Total "Very Satisfied" Votes | 9599 |
Total "Somewhat Satisfied" Votes | 2132 |
Total "Not Satisfied" Votes | 198 |