This commit is contained in:
wmantly committed 2023-09-20 09:53:04 -04:00
1 parent bc46c80b02
commit f8006eb17c
10 files changed
+146

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
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"
+2
View File
@@ -0,0 +1,2 @@
def remove_duplicate(string):
pass