Karthik Karanth
Blog
Art
Projects
Bead sort
PUBLISHED ON OCT 1, 2020
Reset
Bead sort
1
is a sorting algorithm powered by gravity!
For each number
x
in the array we want to sort, we arrange
x
beads in a row.
Let them all drop.
Count the number of beads in each row from top to bottom, and we have our sorted array!
Bead sort - Wikipedia
[return]
< PREV
BLOG
NEXT >
HOME