Find Doubles

Asked at Pure Storage · Coding Questions · Difficulty: Easy · Last asked Jul 15, 2026

Given a list of `N` integers, not necessarily unique, find all elements of the list for which there exists exactly one element of the list which is twice that number. The integers range from `0` to `1000`. The list has no more than `100,000` elements.

Loading the problem…