7 kyu
The old switcheroo 2
1,512 of 3,349joh_pot
Description:
This is a follow up to my kata the old switcheroo.
Write a function that takes in a string and replaces all the letters with their respective positions in the English alphabet; e.g. 'a'
is 1
, 'z'
is 26
. The function should be case-insensitive.
'abc' --> '123'
'ABC' --> '123'
'codewars' --> '315452311819'
'abc-#@5' --> '123-#@5'
Strings
Fundamentals
Similar Kata:
Stats:
Created | Aug 21, 2015 |
Published | Aug 21, 2015 |
Warriors Trained | 5018 |
Total Skips | 214 |
Total Code Submissions | 8261 |
Total Times Completed | 3349 |
JavaScript Completions | 1178 |
C# Completions | 520 |
CoffeeScript Completions | 22 |
Python Completions | 1512 |
Ruby Completions | 171 |
C Completions | 77 |
Total Stars | 61 |
% of votes with a positive feedback rating | 93% of 622 |
Total "Very Satisfied" Votes | 547 |
Total "Somewhat Satisfied" Votes | 68 |
Total "Not Satisfied" Votes | 7 |