Kotlinlearncs.online LogoJava
Return to List

Solve: Remove Repeats

Created By: Chris Taylor
/ Version: 2023.7.0

Complete the following recursive method that returns a string where all neighboring repeated characters are removed.

  • "help" -> "help"
  • "happy" -> "hapy"
  • "buffalo" -> "bufalo"
String removeRepeats(String phrase) {
return ""; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: