DEV Community

Discussion on: Algorithms Every Programmer Should Know 2

Collapse
 
paddy3118 profile image
Paddy3118

A key difference between sorts is whether they are stable or not.
There are tens of different sort algorithms, best to learn about the one built in to your language and think of a change, when optimisation calls for it.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Yes, considering a stable or unstable sort along with the input data while choosing any algorithm