smaller-numbers-constant-space

Status: IN

Memory usage beyond the output is O(101) = O(1) regardless of input size, due to the fixed value range constraint of [0,100].

Source: entries/2026/06/06/how-many-numbers-are-smaller-than-the-current-number-solution.md

JSON