Problem

Count pairs i<j with sum target.

Examples

  • pairSumCount([1, 2, 3], 4) -> 1
Compile and test (Ctrl+Enter)