summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-06-25 11:33:41 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-06-25 11:33:41 +0200
commit6bdf1fc6c1b7afe18ffcae05f8fb11eca0f51258 (patch)
tree2cfbae97d45388bac38defc9907c77e7b275b207 /progs
parent54b2c77e6875c1abb3d73fdfd0de924e75633087 (diff)
wip
Diffstat (limited to 'progs')
-rw-r--r--progs/test.py19
1 files changed, 3 insertions, 16 deletions
diff --git a/progs/test.py b/progs/test.py
index 718885d..ab0901a 100644
--- a/progs/test.py
+++ b/progs/test.py
@@ -1,17 +1,4 @@
-import math
-from re import f4, r3
+x = 1
-from abs import *
-
-
-def find_first_duplicate(nums, x):
- num_set = set()
- no_duplicate = -1
-
- for i in range(len(nums)):
- if nums[i] in num_set:
- return nums[i]
- else:
- num_set.add(nums[i])
-
- return no_duplicate
+if x == 1:
+ print("a")