Maximum Count of pairs having equal Sum based on the given conditions
Given an array arr[] of length N containing array elements in the range [1, N], the task is to find the maximum number of pairs having equal sum, given that any element from the array can only be part of a single pair. Examples: Input: arr[] = {1, 4, 1, 4} Output: 2 Explanation: Pairs {{1, 4}, {1, 4