ABHISHEK-AMRUTE / CP_Algorithms_hacktoberfest

Collection of All CP algorithms
16 stars 69 forks source link

Added FindPair Code - Java #100

Closed Kalyan-1707 closed 3 years ago

Kalyan-1707 commented 3 years ago

Added FindPair Code in java. Which returns a boolean on whether a pair of given value exists or not.

Given a list of numbers and a number k, return whether any two numbers from the list add up to k.

For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.

FindPair
ABHISHEK-AMRUTE commented 3 years ago

@Kalyan-1707 merging into the base. Please drop a star if you find this repo helpful in your Hacktoberfest journey.