Given an array containing n distinct integers in the range [0, n], one number is missing from the array. Find the missing number.

Given an array of integers, check if the array contains any duplicates.

Given a list of integers, find all pairs with given sum.