Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 17th, 2018
101
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
adjacent_points_max_distance
(
A
)
:
n
=
len
(
A
)
if
(
n
==
1
)
:
return
-
2
A.
sort
(
)
m
=
-
2
for
i
in
range
(
0
,
n-
1
)
:
m
=
max
(
m
,
abs
(
A
[
i
]
- A
[
i+
1
]
)
)
if
(
m
>
100000000
)
:
return
-
1
return
m
Add Comment
Please,
Sign In
to add comment
Public Pastes
EasyButton Library rev_01
Arduino | 8 min ago | 1.85 KB
Untitled
C | 14 min ago | 1.27 KB
Name here
Lua | 19 min ago | 0.04 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 19 min ago | 0.39 KB
Farkle Point Logic
Python | 30 min ago | 1.56 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 33 min ago | 0.38 KB
GWComboSwitch.js
JavaScript | 35 min ago | 6.03 KB
zad_4_odp_full_DLC_EXPANSION_V2_autoliczenie
Bash | 46 min ago | 20.55 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!