in

“StalinSort”…. the secret O(n) sorting algorithm…

"StalinSort".... the secret O(n) sorting algorithm... | list-memes, algorithm-memes, sorting-memes | ProgrammerHumor.io
list-memes, algorithm-memes, sorting-memes | ProgrammerHumor.io

[text] gg mathew 8 came up with a single pass On sort algorithm call StalinSort. You iterate down the list of elements checking if theyre in order. Any element which is out of order is eliminated. At the end you have a sorted list.