detect-capital-counting-reduction

Status: IN

detectCapitalUse counts uppercase characters in a single O(n) pass via generator expression, then derives all three valid patterns (all-upper, all-lower, first-only-upper) from that single count.

Source: entries/2026/06/06/detect-capital-solution.md

JSON