ParentFull threadmatvore·If you store the number of zeros as value z, computing z+1 is O(log n) in the long run for unbounded values of z.View on HN