Unable to built the logic
Any hint for this?
Hey @vg5823967
The question is similar to finding 2 values in an array which sum up to a given value X.
https://www.geeksforgeeks.org/given-an-array-a-and-a-number-x-check-for-pair-in-a-with-sum-as-x/ here is a great in depth anaylsis of the same.
If your doubt is resolved please mark it as closed.