title: How to write an algorithm to check if the sum of any two numbers in an array/list matches a given number?
body: <p>How can I write an algorithm to check if the sum of any two numbers in an array/list matches a given number
  with a complexity of <code>nlogn</code>?</p>