Solution 1 - Brute Force
Iterate through every pair of numbers using two nested loops. For each pair, check if they sum to the target. Return the indices when a match is found.
Solution 2 - Brute Force using enumerate()
Same brute force logic, but uses Python's enumerate() for cleaner index tracking instead of range(len(...)).
Solution 1 - Brute Force
For each element in the array, check every other element to see if one is double the other. This uses two nested loops to compare all pairs.
Solution 2 - Hash Set (One Pass)
As we iterate through the array, for each number we check if its double or its half (when even) already exists in the set. If found, return True. Otherwise, add the current number to the set and continue.
Solution 3 - Sorting + Binary Search
Sort the array first, then for each element, use binary search to look for its double. Special care is needed to avoid matching the element with itself (e.g., when the value is 0).