Question: This one might require some contemplation. Given a sorted array of integers, determine whether any two elements add up to some particular target integer. The
This one might require some contemplation. Given a sorted array of integers, determine whether any two elements add up to some particular target integer. The function signature is:
boolean canHasTargetSum(int [] array, int target);
Please code in JAVA.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
