Can someone please help me with this task, my idea was to sort the array and then select every 2 combinations and with binary search find the first element that has smaller sum then their and then just return number of them... but for some reason it's failing is there any condition I should check in binary search?
Here is the Submission:http://www.z-trening.com/new/www/html/submit.php?submit=7100050456&subm_stat=1
Here is the Submission:http://www.z-trening.com/new/www/html/submit.php?submit=7100050456&subm_stat=1