Write a function that takes an array of integers and a target number.
The function should find two different integers in the array that give the ...
For further actions, you may consider blocking this person and/or reporting abuse
Scala
And the tests
Javascript
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.
I can't believe thwre are people saying JS is beautiful
Rust:
python
# defines result of the code
TypeScript