6 kyu

Missing Alphabet

466 of 1,164MicheleCarbone

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).

Strings
Algorithms
Games

Stats:

CreatedApr 14, 2018
PublishedApr 14, 2018
Warriors Trained2990
Total Skips43
Total Code Submissions8686
Total Times Completed1164
JavaScript Completions466
Python Completions403
Ruby Completions73
Java Completions149
C# Completions90
Haskell Completions30
Total Stars52
% of votes with a positive feedback rating90% of 305
Total "Very Satisfied" Votes255
Total "Somewhat Satisfied" Votes41
Total "Not Satisfied" Votes9
Total Rank Assessments21
Average Assessed Rank
6 kyu
Highest Assessed Rank
3 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • MicheleCarbone Avatar
  • joecastle Avatar
  • Firefly2002 Avatar
  • KenKamau Avatar
  • hobovsky Avatar
  • ejini战神 Avatar
  • saudiGuy Avatar
Ad