Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,21 @@
proc beadSort &a[] .
for i to len a[] : max = higher max a[i]
len beads[][] len a[]
for i to len a[]
len beads[i][] max
for j to a[i] : beads[i][j] = 1
.
for j to max
sum = 0
for i = 1 to len a[]
sum += beads[i][j]
beads[i][j] = 0
.
for i = len a[] downto len a[] - sum + 1
a[i] = j
.
.
.
a[] = [ 4 38 100 1 25 69 69 16 8 59 71 53 33 ]
beadSort a[]
print a[]