2 ms·
Dividing a bit in two for performance
- ggggtez 10y agoAuthor doesn't consider chunking from the other end. Split by fourths instead, starting at the root. If number are generated uniformly at random, checking the whole first half is probably always true.