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 27%
Steffan
Shanethegamer
#3
67 c.
Top 33%
Natanaelel
#4
75 c.
Top 47%
KrausRaus
SephQ
#5
77 c.
Top 60%
val
helbling
#6
79 c.
Top 67%
Thomasdcrt
#7
80 c.
Top 73%
scpchicken
#8
102 c.
Top 80%
Pascal
#9
116 c.
Top 87%
maximec-indy
#10
139 c.
Top 93%
ComputerKWasTaken
#11
459 c.
Top 100%
Sidd5arth