Kotlinlearncs.online LogoJava
Return to List

Solve: String Yak

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Suppose the string "yak" is unlucky. Given a String, return a version where all the "yak" are removed, but the "a" can be any char. The "yak" strings will not overlap.

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

Related Lessons

Stuck? You may find these lessons helpful: