set-lookup-guarantees-linear-preprocessing

Status: IN

`find_final_value` builds a set from `nums` in O(n), then performs O(1) membership checks per iteration, making total complexity O(n + log(max(nums))).

Source: entries/2026/06/06/keep-multiplying-found-values-by-two-solution.md

JSON