GameDev.tv
N log n is the very best it could get
Unreal Courses
Talk
unreal-cpp
,
33_bc_urc
Christopher_Doyle
September 13, 2017, 2:11am
1
n log n is the best you can get assuming the the first pair checked happens to be a duplicate.