Kotlinlearncs.online LogoJava
Return to List

Solve: Cat Dog

Imported By: Geoffrey Challen
/ Version: 2021.7.0

Return true if the string "cat" and "dog" appear the same number of times in the passed String.

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

Related Lessons

Stuck? You may find these lessons helpful: