nge-unique-elements-assumed

Status: IN

The dict-keyed-by-value approach in `next_greater_element` is correct only because the problem guarantees all elements are unique; duplicate values would cause silent overwrites of earlier mappings.

Source: entries/2026/06/06/next-greater-element-i-solution.md

JSON