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 15%
tree
voytxt
#2
66 c.
Top 31%
Shanethegamer
Steffan
#3
67 c.
Top 38%
Natanaelel
#4
75 c.
Top 54%
SephQ
KrausRaus
#5
77 c.
Top 62%
val
#6
79 c.
Top 69%
Thomasdcrt
#7
80 c.
Top 77%
scpchicken
#8
102 c.
Top 85%
Pascal
#9
116 c.
Top 92%
maximec-indy
#10
139 c.
Top 100%
ComputerKWasTaken