Homework: 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"
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.Please Log In to Complete Homework Problems