Robert Roskam on Nostr: Elon-sort: 1. randomly eliminate half of the elements 2. bring them back 3. loop thru ...
Elon-sort:
1. randomly eliminate half of the elements
2. bring them back
3. loop thru 1&2 for a random number of times
4. declare the array sorted without checking
Published at
2025-02-22 22:45:51 UTCEvent JSON
{
"id": "a085f8d064ab13875b88c7c7e9c7304e5c4c245a952b8cd9e281aa1ab425a1d2",
"pubkey": "e7ca38d1e89dd70459587635ccef9753f59814c12b84eed1a8226370e47d3638",
"created_at": 1740264351,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@raiderrobert/114049964543808538",
"web"
],
[
"proxy",
"https://mastodon.social/users/raiderrobert/statuses/114049964543808538",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/raiderrobert/statuses/114049964543808538",
"pink.momostr"
],
[
"-"
]
],
"content": "Elon-sort: \n1. randomly eliminate half of the elements\n2. bring them back \n3. loop thru 1\u00262 for a random number of times\n4. declare the array sorted without checking",
"sig": "0a9ca4e413a3b1ebecda89fb0af89bd83f92bc02eb2664b57b75e46eeb03cb846b99697459dcd306b1a5dc90b7e3d3eac4a30eb5c51aa840e8226b4139107880"
}