Second Unique Maximum Difference

Find the second largest unique difference between any two numbers in an array.

Medium1/12/2024

Problem statement

Given an array of integers, find the second largest unique difference between any two numbers in it.

Problem leaderboard

#
Size
%
Users
#1
64 c.
Top 18%
voytxt
tree
#2
66 c.
Top 36%
Shanethegamer
Steffan
#3
67 c.
Top 45%
Natanaelel
#4
75 c.
Top 55%
KrausRaus
#5
77 c.
Top 64%
val
#6
79 c.
Top 73%
Thomasdcrt
#7
80 c.
Top 82%
scpchicken
#8
102 c.
Top 91%
Pascal
#9
118 c.
Top 100%
maximec-indy