Solution: Find Two Numbers That Add Up to "n"
This review provides a detailed analysis of the different ways to solve the previous challenge.
Solution #1: brute force
Explanation
This is the most time-intensive, but intuitive solution. Traverse the whole list and for each element in the list, check if any two elements add up to the given number n.
So, use a nested for loop and iterate over the entire list for each element.
Time complexity
Since we iterate over the entire list of elements, the time complexity is ...