Missing Alphabet
Description:
In this Kata you have to create a function,named insertMissingLetters
,that takes in a string
and outputs the same string processed in a particular way.
The function should insert only after the first occurrence of each character of the input string, all the alphabet letters that:
-are NOT in the original string
-come after the letter of the string you are processing
Each added letter should be in uppercase
, the letters of the original string will always be in lowercase
.
Example:
input
: "holly"
missing letters
: "a,b,c,d,e,f,g,i,j,k,m,n,p,q,r,s,t,u,v,w,x,z"
output
: "hIJKMNPQRSTUVWXZoPQRSTUVWXZlMNPQRSTUVWXZlyZ"
You don't need to validate input, the input string will always contain a certain amount of lowercase letters (min 1 / max 50).
Similar Kata:
Stats:
Created | Apr 14, 2018 |
Published | Apr 14, 2018 |
Warriors Trained | 2990 |
Total Skips | 43 |
Total Code Submissions | 8686 |
Total Times Completed | 1164 |
JavaScript Completions | 466 |
Python Completions | 403 |
Ruby Completions | 73 |
Java Completions | 149 |
C# Completions | 90 |
Haskell Completions | 30 |
Total Stars | 52 |
% of votes with a positive feedback rating | 90% of 305 |
Total "Very Satisfied" Votes | 255 |
Total "Somewhat Satisfied" Votes | 41 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 21 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 3 kyu |
Lowest Assessed Rank | 7 kyu |