Removes Duplicate
Lesson 24 of 24 in Coddy's Golang Challenges - Level 1 course.
Challenge
Easy
Write a function that takes a string and removes repeated duplicate characters from it.
For example, the string "aabccchbbccaaa" should return "abchbca".
Note that we are deleting repeated letters one by one, not all duplicate letters Example: "aabccchbbccaaa" => “abchbca”
Try it yourself
func removeDuplicate() {
}All lessons in Golang Challenges - Level 1
1Introduction
Introduction