Skip to content

JuniorDevSingapore/mummy_kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mummy Kata

You are given strings of different lengths. If the number of vowels are more than 30% of the string length then insert ‘mummy’ for each continuous set of vowels.

  • ✅ his → hmummys
  • ✅ hear → hmummyr
  • ❌ hear → hmummymummyr

Samples

“” → “” // empty string
“str” → “str” // no vowels
“a” → “mummy” // single vowel
“blah” → “blah” // < 30% length
“bla” → “blmummy” // > 30% length
“blaa” → “blmummy” // continuous vowels
“blaaha” → “blmummyhmummy” // multi sets of vowels
“blA” → “blmummy” // capital letters

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published