A little visualization of the ID numbers in my input in the order that they arrive in (the order in the list). Each time a new ID arrives that we haven't seen before, we start a new pile to the right of the others to drop it into. Otherwise, we drop into onto the matching existing pile. At the end, we find the shortest and tallest piles. A satisfying little warm up to get back into practice visualizing with.
6
u/Boojum 11h ago
A little visualization of the ID numbers in my input in the order that they arrive in (the order in the list). Each time a new ID arrives that we haven't seen before, we start a new pile to the right of the others to drop it into. Otherwise, we drop into onto the matching existing pile. At the end, we find the shortest and tallest piles. A satisfying little warm up to get back into practice visualizing with.
Made in Python with a small custom framework.
Complete self-contained source for this animation.
4
u/_alba4k 9h ago
it's snowing! :)
1
u/cyberc0de 4h ago
Love it! Just finished my solution for the stars, now time to clean it up and make it PRETTY!!!!!