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 14%
tree
voytxt
#2
66 c.
Top 29%
Steffan
Shanethegamer
#3
67 c.
Top 36%
Natanaelel
#4
75 c.
Top 50%
SephQ
KrausRaus
#5
77 c.
Top 57%
val
#6
79 c.
Top 64%
Thomasdcrt
#7
80 c.
Top 71%
scpchicken
#8
102 c.
Top 79%
Pascal
#9
116 c.
Top 86%
maximec-indy
#10
139 c.
Top 93%
ComputerKWasTaken
#11
459 c.
Top 100%
Sidd5arth