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 17%
voytxt
tree
#2
66 c.
Top 33%
Steffan
Shanethegamer
#3
67 c.
Top 42%
Natanaelel
#4
75 c.
Top 50%
KrausRaus
#5
77 c.
Top 58%
val
#6
79 c.
Top 67%
Thomasdcrt
#7
80 c.
Top 75%
scpchicken
#8
102 c.
Top 83%
Pascal
#9
116 c.
Top 92%
maximec-indy
#10
139 c.
Top 100%
ComputerKWasTaken