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 12%
tree
voytxt
#2
66 c.
Top 24%
Shanethegamer
Steffan
#3
67 c.
Top 29%
Natanaelel
#4
75 c.
Top 47%
helbling
KrausRaus
SephQ
#5
77 c.
Top 53%
val
#6
79 c.
Top 59%
Thomasdcrt
#7
80 c.
Top 65%
scpchicken
#8
84 c.
Top 71%
XenThe
#9
102 c.
Top 76%
Pascal
#10
116 c.
Top 82%
maximec-indy
#11
139 c.
Top 88%
ComputerKWasTaken
#12
459 c.
Top 94%
Sidd5arth
#13
880 c.
Top 100%
Alex