Doesn't this return the values that sum up to the target value and not their indices in the array?
It did. I've now corrected it, I hope.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.