Kotlinlearncs.online LogoJava
Return to List

Solve: Double X

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given a String, return true if the first instance of "x" in the string is immediately followed by another "x".

fun doubleX(input: String): Boolean {
return false // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: