sign-func-zero-short-circuit

Status: IN

`signFunc` returns `0` immediately upon encountering any zero element, skipping remaining iteration — both a correctness guarantee (zero dominates the product) and a minor performance optimization.

Source: entries/2026/06/06/sign-of-the-product-of-an-array-solution.md

JSON