summaryrefslogtreecommitdiff
path: root/progs/test.py
diff options
context:
space:
mode:
authorEmanuele Grasso <96300448+L0P0P@users.noreply.github.com>2024-07-06 09:47:25 +0200
committerGitHub <noreply@github.com>2024-07-06 09:47:25 +0200
commitf0692ff5f9e39cbd1c203e9d5abebf55a3d0f6fc (patch)
tree36518af3f04a751ba5bb8158c3f005cfa3e8c7c3 /progs/test.py
parent8aa8b5834953cab15c0687608f4fafea2e6c61be (diff)
Fixed the print of the ast and some warnings (#19)
Co-authored-by: Santo Cariotti <santo@dcariotti.me>
Diffstat (limited to 'progs/test.py')
-rw-r--r--progs/test.py20
1 files changed, 3 insertions, 17 deletions
diff --git a/progs/test.py b/progs/test.py
index 718885d..4ccfb1a 100644
--- a/progs/test.py
+++ b/progs/test.py
@@ -1,17 +1,3 @@
-import math
-from re import f4, r3
-
-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
+m = 1
+for i in range(10):
+ m = m + 1