3 ms·
Wouldn't you also need to keep track of the stack's size, to know if there are leading zeros?
by SeanSullivan86 6mo ago
Wouldn't you also need to keep track of the stack's size, to know if there are leading zeros?
- entaloneralie 6mo agoFor trailing zeros yeah, or if you care for stack overflow/underflow. Here's a few primitives if you wanna try it out: https://paste.sr.ht/~rabbits/cd2369cc7c72bfad0fcd83e2768209515fb019e4 https://paste.sr.ht/~rabbits/cd2369cc7c72bfad0fcd83e27682095...