532. K-diff Pairs in an Array

  • corner case, length less than 2 and negative k.
  • variant of two sum: O(1) space