C / C ++ to find the two numbers in a one-dimensional array, such that the sum thereof is equal to a given value

Binary search

Guess you like

Origin www.cnblogs.com/yangwenhuan/p/12174972.html