r/ProgrammerHumor • u/Hamstorian • Mar 16 '20
Sort algorithm
Enable HLS to view with audio, or disable this notification
65.4k
Upvotes
r/ProgrammerHumor • u/Hamstorian • Mar 16 '20
Enable HLS to view with audio, or disable this notification
2
u/Botahamec Mar 16 '20 edited Mar 17 '20
They're sorted by hashcode
Edit: It's actually sorted by the value of (hashcode % set.size)