Compare commits
No commits in common. "6be0a0233ea91f7c31842807777e2199a3602a08" and "58b85d23dd93e794449a2a28ecde08f35561b4b0" have entirely different histories.
6be0a0233e
...
58b85d23dd
@ -1,9 +0,0 @@
|
|||||||
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')}")
|
|
||||||
Loading…
Reference in New Issue
Block a user