CSES Solutions - Sum of Two values
You are given an array arr[] of N integers, and your task is to find two different indices whose sum is X. Examples: Input: N = 4, X = 8, arr[] = {2, 7, 5, 1}Output: 2 4Explanation: The sum of arr[2] and arr[4] (1-based indexing) is 7 + 1 = 8 Input: N = 5, X = 6, arr[] = {1, 2, 3, 4, 5}Output: 1 5Ex