Kotlinlearncs.online LogoJava
Return to List

Solve: Count XX

Imported By: Geoffrey Challen
/ Version: 2021.5.0

Count the number of "xx" in the given String. We'll say that overlapping is allowed, so "xxx" contains 2 "xx".

fun countXX(input: String): Int {
return 0 // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: