feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

14
removeDuplicates.py Normal file
View File

@@ -0,0 +1,14 @@
def removeDuplicates(st: str):
st = list(st)
letters = set()
i = 0
while i < len(st):
if st[i] in letters:
st.pop(i)
else:
letters.add(st[i])
i += 1
return "".join(st)