Integer square root (search the answer)
Search the answers, not an array: halve the range of k until k² is as big as it can be.
x30
Find the largest k with k² ≤ 30. Every candidate k from 0 to 30 is a bar of height k².
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub