week1/02-remove_dupe
2023-09-20 09:53:04 -04:00
..
2023-09-20 09:53:04 -04:00
2023-09-20 09:53:04 -04:00

Remove The Dupes!

You have a string "aabbccddeded". We want to remove all the consecutive duplicates and put them in a separate string, which yields two separate instances of the string "abcdeded".

input: "balloons"
expected output: "balons" "lo"

input: "aabbccddeded"
expected output: "abcdeded" "abcd"

input: "flabby aapples"
expected output: "flaby aples" "bap"