for i in range(0,n):
if m in nums:
@kong75 this does not rule out the case where nums[i] appears more than once in nums
@lil It is assumed that each input would have exactly one solution. Thus, I think there should be only one output and we can ignore the case that nums[i] appears more than once :)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.