내가 짠 코드
def closestNumbers(arr):
# Write your code here
arr.sort()
minimum = 200001
lst = []
for i in range(1, len(arr)):
cur = abs(arr[i-1]-arr[i])
if cur < minimum:
minimum = cur
lst = []
if cur == minimum:
lst.append(arr[i-1])
lst.append(arr[i])
return lst