Maximum count of pairs which generate the same sum
Given an array arr[], the task is to count the maximum count of pairs that give the same sum. Examples: Input: arr[] = {1, 2, 3, 4} Output: 2 (1, 2) = 3 (1, 3) = 4 (1, 4), (2 + 3) = 5 (2, 4) = 6 (3, 4) = 7 Input: arr[] = {1, 8, 3, 11, 4, 9, 2, 7} Output: 3 Approach: Create a map to store the frequen