diff options
Diffstat (limited to 'progs/test.py')
-rw-r--r-- | progs/test.py | 20 |
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 |