To find the total number of pairs in an array whose sum equals a target value x, one efficient approach is to use a hash map (or dictionary) to track
enter the total elements : 4
enter the number X : 12
enter the elements value 0 : 1
enter the elements value 1 : 2
enter the elements value 2 : 6
enter the elements value 3 : 6
pair is : 6,6
Process exited after 9.802 seconds with return value
praveen12.hashnode.dev1 min read