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 13%
tree
voytxt
#2
66 c.
Top 25%
Steffan
Shanethegamer
#3
67 c.
Top 31%
Natanaelel
#4
75 c.
Top 50%
KrausRaus
helbling
SephQ
#5
77 c.
Top 56%
val
#6
79 c.
Top 63%
Thomasdcrt
#7
80 c.
Top 69%
scpchicken
#8
102 c.
Top 75%
Pascal
#9
116 c.
Top 81%
maximec-indy
#10
139 c.
Top 88%
ComputerKWasTaken
#11
459 c.
Top 94%
Sidd5arth
#12
880 c.
Top 100%
Alex