Implement a function to find the two numbers in an array that add up to a target value and return their indices.
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.