Could anyone help with the following question:
You are given an array of integers. Your task is to create pairs of them, such that every created pair has the same sum. This sum is NOT specified, but the number of created pairs should be the maximum possible. Each array element may belong to one pair only. Write a function: public int solution(int[] A) that given an array A of N integers, returns the maximum possible number of pairs with the same sum. Examples:
How is the difficulty of this? I thought this was hard.