Kotlinlearncs.online LogoJava
Return to List

Solve: Star Out

Imported By: Geoffrey Challen
/ Version: 2021.7.0

Return the given String but where for every '*' in the String the '*' characters immediately adjacent to it are removed. So "ab*cd" and "ab**cd" both yield "ad".

fun starOut(input: String): String {
return "" // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: