Write code for Two Sum.
Asked in the technical stage.
Implement def two_sum(nums, target):. Return the indices of two distinct elements whose values add to target. Assume exactly one solution exists.
def two_sum(nums, target):
target
Your question is Two Sum Coding Challenge. Start with the requirements in the Question tab.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.