Stalin sort algorithm joke
Stalin sort! if array[i] > array[i+1] remove array[i]
A programming forum post presents a joking “Stalin sort” algorithm: whenever an array element is greater than the next one, it is removed. The punchline is that the algorithm sorts the array by eliminating anything that violates the desired order, parodying authoritarian purges. EN: A programming forum post presents a joking “Stalin sort” algorithm: whenever an array element is greater than the next one, it is removed. The punchline is that the algorithm sorts the array by eliminating anything that violates the desired order, parodying authoritarian purges.
programming code / программный кодarray notation / обозначение массиваcomparison operator / оператор сравненияmonospace text / моноширинный текстsocial media post / пост в социальной сетиupvote arrow / стрелка голосования вверхdownvote arrow / стрелка голосования внизstar icon / значок звездыreply icon / значок ответа
- @profunctor_io / 1866 2019-04-08
- Template
- Stalin sort
- Type
- image
- Size
- 800×382 · 18.5 KiB
- Mood
- dark humor
- Language
- en
- Added