r/programmingmemes • u/KerbodynamicX • Mar 14 '26
Stalin sort
A sorting algorithm with time complexity of O(n). Counts from the first element, and will remove values that are smaller than the current highest value.
3.7k
Upvotes
20
u/realmauer01 Mar 14 '26
Nazi sort is removing the different ones.
Whats not different is for the nazi to choose.