algorithms-exercises icon indicating copy to clipboard operation
algorithms-exercises copied to clipboard

refactor(insertion-sort): :recycle: no need to check on j <= 0, undefined is never > truthy

Open AndrewLawendy opened this issue 3 years ago • 0 comments

It's an extra operation nums[-1] (undefined) will never be bigger than any truthy value

AndrewLawendy avatar Jul 23 '22 13:07 AndrewLawendy