443.Two Sum - Greater than target
Last updated
Was this helpful?
Last updated
Was this helpful?
Given an array of integers, find how many pairs in the array such that their sum is bigger than a specific target number. Please return the number of pairs.
Example
Given numbers =[2, 7, 11, 15]
, target =24
. Return1
. (11 + 15 is the only pair)
Do it in O(1) extra space and O(nlogn) time.
跟609相似