Kotlinlearncs.online LogoJava
Return to List

Solve: delDel

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given a String, if the string "del" appears starting at index 1, return a String where that "del" has been deleted. Otherwise, return the string unchanged.

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

Related Lessons

Stuck? You may find these lessons helpful: