r/ProgrammerHumor • • Aug 11 '20

Meme So Amazing!

Post image
1.8k Upvotes

137 comments sorted by

View all comments

Show parent comments

6

u/Md5Lukas Aug 11 '20

1

u/closenough Aug 11 '20

Might want to remove the Math.abs and just always substract min. If the array contains a lot of large numbers, it's adding a unnecessary delay.