Compare commits

...

2 Commits

9
solution2.py Normal file
View File

@ -0,0 +1,9 @@
def remove_duplicate_chars(s: str) -> str:
result = ""
for char in s:
if char not in result:
result += char
return result
if __name__ == "__main__":
print(f"remove_duplicate_chars('abacabad') → {remove_duplicate_chars('abacabad')}")