7 kyu
Tail Swap
2,237 of 5,329mkelty
Description:
You'll be given a list of two strings, and each will contain exactly one colon (":"
) in the middle (but not at beginning or end). The length of the strings, before and after the colon, are random.
Your job is to return a list of two strings (in the same order as the original list), but with the characters after each colon swapped.
Examples
["abc:123", "cde:456"] --> ["abc:456", "cde:123"]
["a:12345", "777:xyz"] --> ["a:xyz", "777:12345"]
Fundamentals
Similar Kata:
Stats:
Created | Jan 1, 2017 |
Published | Jan 1, 2017 |
Warriors Trained | 7551 |
Total Skips | 118 |
Total Code Submissions | 12849 |
Total Times Completed | 5329 |
Python Completions | 2237 |
Haskell Completions | 129 |
JavaScript Completions | 2408 |
CoffeeScript Completions | 11 |
PHP Completions | 262 |
Ruby Completions | 115 |
TypeScript Completions | 205 |
C# Completions | 149 |
C Completions | 21 |
Total Stars | 56 |
% of votes with a positive feedback rating | 92% of 880 |
Total "Very Satisfied" Votes | 760 |
Total "Somewhat Satisfied" Votes | 103 |
Total "Not Satisfied" Votes | 17 |
Total Rank Assessments | 13 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |