Cosmic Radiation Sort Algorithm
arr = [ 6,4,8,2,1,3,7,5] while True: if isSorted(arr): return arr """"" waits for the cosmic solar radiation to manipulate the bits and sorts the list """""
A black-background programming joke shows an unsorted array inside an infinite loop that returns only when the list is sorted. Instead of using a sorting algorithm, the code waits for cosmic solar radiation to randomly manipulate the computer's bits until the list becomes sorted. It is a reaction to absurdly inefficient or deliberately ridiculous programming solutions. EN: A black-background programming joke shows an unsorted array inside an infinite loop that returns only when the list is sorted. Instead of using a sorting algorithm, the code waits for cosmic solar radiation to randomly manipulate the computer's bits until the list becomes sorted. It is a reaction to absurdly inefficient or deliberately ridiculous programming solutions.
code editor text / текст в редакторе кодаunsorted array / неотсортированный массивnumbers / числаblack background / чёрный фонinfinite loop / бесконечный циклreturn statement / оператор returncomputer bits / компьютерные битыcosmic solar radiation / космическое солнечное излучениеsorting operation / операция сортировки
- @gentoomemes / 8872 2024-01-20
- Type
- image
- Size
- 800×521 · 37.0 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added