Making Counting Sort work with Negative Values

Hot off my mistake in the earlier thread, I figured I’ll go ahead and propose a solution to modify counting sort to work with negative values as well! :slight_smile:

Hopefully this helps those of you who stumble onto here either from the article or a Google search :parachute:

Also, I had way too much fun creating this: