Skip to content

northcoders/rtf-2020-day-4-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Herd the babies

Write a function called herdTheBabies which takes a string as its argument. The string will consist of several 'baby' (lowercase) letters, that belong to a 'parent' (uppercase) letter.

The function should return a string that is sorted alphabetically, with the parent letter coming before its babies.

EXAMPLES:

herdTheBabies('aA') //should return 'Aa'
herdTheBabies('aBA') //should return 'AaB'
herdTheBabies('bbaBccAC') //should return 'AaBbbCcc'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published